Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

takes ID course_id sec_id semester year grade student ID name dept_name tot_cred course course id title section course id sec_id semester year building room_no time_slot_id

image text in transcribed

takes ID course_id sec_id semester year grade student ID name dept_name tot_cred course course id title section course id sec_id semester year building room_no time_slot_id department dept_name building budget advisor s id i id dept_name credits time_slot time slot id day start_time end_time prereq classroom building room_no capacity course_id prereq_id instructor ID name dept_name salary teaches ID course id sec_id semester year Consider a query to find the number of instructors in each department. a) Give your answer using aggregate function. b) One possible answer is as follow. Is it correct? Give your reason. SELECT dept_name, count (DICTINCT name) FROM instructor GROUP BY dept_name

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

All of Estonia is covered by digital mobile phone networks.

Answered: 1 week ago

Question

Demonstrate how to use the Gaps Model for diagnosing and

Answered: 1 week ago

Question

Differentiate between hard and soft measures of service quality.

Answered: 1 week ago