Database System Concepts
Database System Concepts
7th Edition
ISBN: 9789332901384
Author: Henry F. Korth & S. Sudarshan Abraham Silberschatz
Publisher: MCGRAW-HILL HIGHER EDUCATION
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 3, Problem 32E

Explanation of Solution

Query:

The query for the given scenario:

SELECT distinct teaches.ID, Name FROM takes, teaches, instructor WHERE teaches.course_id = takes.course_id AND instructor.Id = teaches.Id and Grade is not NULL AND teaches.ID not in (SELECT distinct teaches.Id FROM takes, teaches WHERE teaches.course_id = takes.course_id and Grade="A");

Explanation:

  • The subquery(inner select query) finds teacher Id's who have given Grade "A" in any course that they teach...

Blurred answer
Students have asked these similar questions
Create a query that displays each instructor's schedule. Display the instructor name, course title, time slot information, for each course taught by the instructor. Also, display the building and room number where the course is taught. Sort the results in a meaningful timetable way, so that each instructor can easily see their schedules.
Write the query for creating the users and their roles.
Create a query that displays each instructor schedule. Display the instructor name, course title, time slot information, for each course taught by the instructor. Also display the building and room number where the course is taught. Sort the results in a meaningful timetable way, so that each instructor can easily see their schedules.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage