Make a structured query language (SQL) for the following question in Access Data
ID: 3818417 • Letter: M
Question
Make a structured query language (SQL) for the following question in Access Database (ill put into access database myself, just need the SQL): (I have provided the necessary info in screenshots. Screenshot 1 is the relationships, 2 is Attendance table, 3 is Courses table, 4 is Employees table).
QUESTION 5) List top 5 employees who have passed the most number of courses (Last, First, [Number of courses]).
Here is what i have done so far (I DID EVERYTHING EXCEPT TOP 5, PLEASE SHOW ME HOW TO PICK TOP 5 EMPLOYEES THAT PASSED COURSES):
All Access Obje H Employee: NAL CMIA Ascending Tis X Del Relati 1/1/2000 $3100.00 $6.110.00 9/23 1998 3/1/1956 $2,800.00 2/23/1997 810N1997 $3,400.00 2/1/1957 $3.200.00 $0.00 Ary doExplanation / Answer
Top in access get us the top 'n' rows.
SELECT TOP 5 Last, COUNT(Passed) AS TotalCoursesPassed
FROM Employees, Attendance
WHERE Employees.SSN = Attendance.SSN
AND Passed = YES
GROUP BY Last
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.