11.5k views
0 votes
Please use SQL to answer queries.

STUDENT(Ssn, Name, Major, Bdate)

COURSE(Course#, Cname, Dept)

ENROLL(Ssn, Course#, Quarter, Grade)

BOOK_ADOPTION(Course#, Quarter, Book_isbn)

TEXT(Book_isbn, Book_title, Publisher, Author)

Retrieve the names of departments that adopt textbooks published by Addison-Wesley only.

1 Answer

0 votes

Answer:

Please find the attachment of query:

Step-by-step explanation:

IIn the given query multiple select clauses and where the condition is used which can be defined as follows:

In this query first, we select the "Dept" column from the "COURSE" table, and in where clause it uses another select clause in this clause it selects the "Course#" column from the "BOOK_ADOPTION" table.

Inside this, another condition is used, that selects "Book_isbn" from the "TEXT" table and in where clause, it matches the publisher value that is "Addison-Wesley".

Please use SQL to answer queries. STUDENT(Ssn, Name, Major, Bdate) COURSE(Course#, Cname-example-1
User Bastiaan Quast
by
9.0k points