Oracle 12c: SQL
Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 9, Problem 3HOA

Explanation of Solution

SQL Query:

Refer to the “books”, “orders”, “orderitems” and “customers” tables in the JustLee Books database.

The SQL statement to perform the stated task with traditional approach is as follows:

SELECT DISTINCT c.lastname, c.customer#

 FROM books b, orders o, orderitems i, customers c

 WHERE c.customer# = o.customer#

  AND o.order# = i.order#

  AND i.isbn = b.isbn

  AND c.state = 'FL'

  AND b.category = 'COMPUTER';

The SQL statement to perform the stated task using the JOIN keyword is as follows:

SELECT DISTINCT c...

Blurred answer
Students have asked these similar questions
Display the customer ID, name, and order ID for all customer orders. For those customers who do not have any orders, include them in the display once.
Using software.subscriptions table, pull all columns for subscriptions that have been cancelled.
sql question Write an UPDATE statement that modifies the Customers table. Change the password column to “reset” for every customer in the table.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE 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
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage