Dear Pros,
kindly suggest modification to the SQL below, if I intend to select the best eight subjects and Math, CSPE, Greek and English are compulsory among the eight.
Thanks.
Ade
SELECT [EXAMINATION RECORDS].STUDENTID, [EXAMINATION RECORDS].[STUDENT EXAM NO], [EXAMINATION RECORDS].SUBJECT, [EXAMINATION RECORDS].MARKS
FROM [EXAMINATION RECORDS]
WHERE ((([EXAMINATION RECORDS].SUBJECTID) In (SELECT TOP 5 [SUBJECTID]
FROM [EXAMINATION RECORDS] ER
WHERE ER.[STUDENT EXAM NO] = [EXAMINATION RECORDS].[STUDENT EXAM NO]
AND SUBJECT <> "MATH"
ORDER BY MARKS DESC, SUBJECT))) OR ((([EXAMINATION RECORDS].SUBJECT)="MATH"));
__._,_.___
Posted by: Adeboyejo Oyenuga <aoye_99@yahoo.co.uk>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
SPONSORED LINKS
.
__,_._,___
Tidak ada komentar:
Posting Komentar