Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There are relations: student sid, name, address, status, advisorlD) advisorD is profD transcript sid.cno. semester, grade) course(cno, deptlD, cName, credits) teaching(proflD, cno.semester) professor(profIlD, name, deptID)

image text in transcribed
There are relations: student sid, name, address, status, advisorlD) advisorD is profD transcript sid.cno. semester, grade) course(cno, deptlD, cName, credits) teaching(proflD, cno.semester) professor(profIlD, name, deptID) Please write SQL query to answer the following requests. You can use aggregate functions, if needed. (1) List the cno and cname of the courses taught during "S2002 and F2002 semesters. (2) List the cno of the courses that have been taught by CS professors. (3) List the cno of the courses that have never been taught by profess James Lee. (3) Find the names of the professors who taught at least two courses in the same semester (4) List the names of the professors who taught every course offered in SE'department (5) List the names of the students who have John Brown' as their advisor. (Queries below are expected to use aagregate functions. Work on them after Wednesday's class.) 6) Lis each professor's name and the rumber of studtents they have advised. 71 List the course name of the courses that have been taught mos times (B) Find the students who took more than 16 credit hours courses in some

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

4. Develop a self-directed learning module.

Answered: 1 week ago

Question

2. Provide recommendations for effective on-the-job training.

Answered: 1 week ago