To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Related Sites > SQL Course

SQL Course SQL Course > Ask questions about the lessons on SQL Course 1 and 2. If you have problems > with the interface, please post in the Feedback forum

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-20-2002, 08:43 PM
piggy piggy is offline
Junior Member
 
Join Date: Nov 2002
Posts: 1
Question Can somebody help me on this assignment question?

Thanks for your help first!!!

Thanks for your help first.

4 tables:
Lecturer (ID, name)

Student (ID, name)

Course_offered (course_ID, academic_year, semester, lecturer_ID)
· Lecturer_ID is a foreign key that references the Lecturer table

Course_taken (course_ID, academic_year, semester, student_ID, grade)
· Course_ID, academic_year, semester are a foreign key that references the Course_offered table
· Student_ID is a foreign key that references the Student table.


Question:
List the names of students who have taken course(s) with all the lecturers in the Division.
Reply With Quote
  #2  
Old 11-21-2002, 04:15 PM
bamcorp bamcorp is offline
Junior Member
 
Join Date: Nov 2002
Posts: 8
Don't plagurize.

select b.[name]
from
student b inner join course_taken d
on b.[id] = d.student_id
inner join course_offered c
on c.course_id = d.course_id
inner join lecturer a
on a.[id] = c.lecturer_id
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:04 AM.


DatabaseJournal Recent Articles


 » Grouping with SQL Server 2008

 » Conducting Service Broker Conversation Usi...

 » Applying data warehousing principles to ev...

 » Oracle New Year's resolutions, part 1: Adv...

 » Hands on: Understanding SQL queries

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.