Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Answer the following questions with SQL statement) (1) Suppose a student with student id 88888 wants to take a course SEEM9999. Write a query to

(Answer the following questions with SQL statement)

(1) Suppose a student with student id 88888 wants to take a course SEEM9999. Write a query to check if the student has taken all its prerequisites (directly and indirectly) already.

(2) For all students, show student id, student name, and all the course ids if a student has taken the same course more than once. (Hint, it happens if a student fails a course and repeats the course.)

image text in transcribed

student takes ID course_id sec id semester year grade ID name dept_name tot cred section course course id sec id semester year building room_no time_slot_id course_id title dept_name credits department dept_name building budget advisor s id i id time_slot time_slot_id day start time end_time classroom building room no capacity prereq course_id prereg_id instructor ID name dept_name salary teaches ID course_id sec_id semester year student takes ID course_id sec id semester year grade ID name dept_name tot cred section course course id sec id semester year building room_no time_slot_id course_id title dept_name credits department dept_name building budget advisor s id i id time_slot time_slot_id day start time end_time classroom building room no capacity prereq course_id prereg_id instructor ID name dept_name salary teaches ID course_id sec_id semester year

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

please try to give correct answer 1 0 5 3

Answered: 1 week ago