Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with my project the instructions are down below with the table structures and data. I need step by step instructions on how

I need help with my project the instructions are down below with the table structures and data. I need step by step instructions on how to do this
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Project Questions Table constraints student_number in ENROLLMENT must exist in SID in STUDENT class name in ENROLLMENT must exist in name in CLASS 1 Use a subquery to display the name, grade level and age of the oldest students. (20 pts.) 2. Provide the SQL to display each room and the total number of students who have classes in that room. The resulting column displaying the number of students should be named "TotalStudents". You should use only the JOIN...ON.. syntax to write this query. (20 pts.) 3. Use a subquery to display the class schedule (class name, time, and room) of history graduate student 'bakr. Note: graduate students are denoted by the grade-level GR. (20 pts.) 4. Create an SQL statement to display the average age for each grade_level. A grade_level should be included in the result set only if the oldest student in that grade level is under 35 and the number of students in the grade level does not exceed 15 Hint: You do not need to use a subquery but you may need to use a GROUP BY statement. (40 pts.)

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

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

=+j Explain the relationship between unions and MNEs.

Answered: 1 week ago

Question

=+Have they changed the way employees view IP?

Answered: 1 week ago