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.

Respuesta :

Answer:

Please find the attachment of query:

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".        

Ver imagen codiepienagoya