Question: Given the following table structures: Student ( sno , sname, gpa ) Reg ( sno , cno, grade ) Course ( cno , cname, credits
Given the following table structures:
Studentsno sname, gpa
Regsno cno, grade
Coursecno cname, credits
Which of the following SQL statements will find students who have registered for more than credit hours?
SELECT ssno, ssname
FROM Student s Reg Course c
WHERE ssno rsno AND ccno rcno
HAVING SUMccredits
SELECT ssno, ssname
FROM Student s Reg Course c
WHERE ssno rsno AND ccno rcno
HAVING COUNTccredits
SELECT ssno, ssname
FROM Student s Reg r Course c
WHERE ssno rsno AND ccno rcno
AND countccredits
None of the others will work
SELECT ssno, ssname
FROM Student s Reg r Course c
WHERE ssno rsno AND ccno rcno
AND SUMccredits
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
