Home » RDBMS Server » Server Administration » Help..URGENT !!
Help..URGENT !! [message #371737] Thu, 30 November 2000 21:18 Go to next message
Alex
Messages: 190
Registered: August 1999
Senior Member
Hi,
I need to select the ssn# of the students who have taken all the available courses that are in Course table.
Course table has course_id and course_description. Student table has ssn#, course_id.

Thanx in advance..

..Alex
Re: Help..URGENT !! [message #371741 is a reply to message #371737] Fri, 01 December 2000 03:15 Go to previous message
John R
Messages: 156
Registered: March 2000
Senior Member
I think this will do it, but our databases are down at the moment, so I can't check

Select s.ssn#
from student s
having count(distinct s.course_id) = (select count(distinct course_id) from course)
group by s.ssn#
Previous Topic: change column field sequence
Next Topic: check for numbers only in varchar2 field
Goto Forum:
  


Current Time: Thu May 02 23:22:21 CDT 2024