Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The order_id of the orders that include a product from artist 'Burt Ruggles' and include products from 'Jess & Odie. SELECT ORDER_ID FROM ORDER_DETAILS O

The order_id of the orders that include a product from artist 'Burt Ruggles' and include products from 'Jess & Odie.

SELECT ORDER_ID FROM ORDER_DETAILS O INNER JOIN ITEMS I ON O.ITEM_ID = I.ITEM_ID WHERE I.ARTIST = 'Burt Ruggles' INTERSECT SELECT ORDER_ID FROM ORDER_DETAILS O INNER JOIN ITEMS I ON O.ITEM_ID = I.ITEM_ID WHERE I.ARTIST = 'Jess & Odie';

Repeat the query above but this time do not use UNION. Hint: You will need to use a subquery

image text in transcribed

Connections + DOESBUSINESSIN_T - EMPLOYEE_T + EMPLOYEESKILLS_T D GENERAL_LEDGER_ACCOUNTS + INVOICE_LINE_ITEMS - INVOICES ITEMS 0 ITEM_ID I TITLE ARTIST - UNIT_PRICE 0 ORDER_DETAILS - ORDER_ID 1 ITEM_ID L ORDER_QTY 0 ORDER_T + 0 ORDERLINE_T # 2 ORDERS + PAYMENT_T # E PAYMENTTYPE T

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions