Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following query: For all students, show students ID if he/she takes at least one FinTech course (a course id beginning with FETC) and

Consider the following query: For all students, show students ID if he/she takes at least one FinTech course (a course id beginning with FETC) and at least one SEEM course (a course id beginning with SEEM) in 2020.

(a) Answer this query using SQL in which you must have set operations.

(b) Answer this query using SQL in which you must only use joins and selections excluding set operations, nested subquery, or derived relation.

(c) Answer this query using SQL in which you must use nested subquery without correlation variables.

(d) Answer this query using SQL in which you must use nested subquery with correlation variables.

(e) Answer this query using SQL in which you must use derived relations.

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

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions