Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Express each of the following queries in SQL. a) Find the names of all buildings on campus (including both classroom buildings and department buildings). The

image text in transcribed

Express each of the following queries in SQL.

a) Find the names of all buildings on campus (including both classroom buildings and department buildings). The resulting relation should have one attribute and no duplicate values for this attribute.

b) Find the ID and name of the instructor who has taught the most courses (i.e. has the most tuples in teaches).

c) For each department, list the department name and the average number of credits in courses in that department.

.

student takes ID course_id sec_id semester year name dept_name tot_cred grade section advisor course id sec_id course course_id title dept_name credits semester department dept_name building budget Slid i id year building room_no time_slot_id time_slot time slot_id day start_time end_time instructor classroom building room_no capacity prereq course_id prereg_id ID name dept_name salary teaches 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_2

Step: 3

blur-text-image_3

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

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

Students also viewed these Databases questions

Question

Describe the basic tenets of supply, demand, and markets

Answered: 1 week ago

Question

Compose the six common types of social business messages.

Answered: 1 week ago

Question

Describe positive and neutral messages.

Answered: 1 week ago