III. SubQueries in SQL: In the database ProductOrders created in the previous exercise, write the following...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
III. SubQueries in SQL: In the database "ProductOrders" created in the previous exercise, write the following queries using subqueries: 1. List all products having Price smaller than the price of product 'P05' 2. List all customers who have made an order by using EXISTS in WHERE clause. 3. List all customers who have never made an order by using NOT EXISTS in WHERE clause 4. List all customers who have made an order by using IN in WHERE clause. 5. List all customers who have never made an order by using NOT IN in WHERE clause 6. List all products bought in order 'Or002' 7. List all products having Price greater than all the prices of 'Keyboard' and 'Mouse' 8. List all products having price greater than the prices 'Keyboard' or 'Mouse' 9. List all products which have been bought by customer 'NGUYEN THI BE' (Nguyễn Thị Bé). 10. List all products having price greater than the average price of all products in Products table. III. SubQueries in SQL: In the database "ProductOrders" created in the previous exercise, write the following queries using subqueries: 1. List all products having Price smaller than the price of product 'P05' 2. List all customers who have made an order by using EXISTS in WHERE clause. 3. List all customers who have never made an order by using NOT EXISTS in WHERE clause 4. List all customers who have made an order by using IN in WHERE clause. 5. List all customers who have never made an order by using NOT IN in WHERE clause 6. List all products bought in order 'Or002' 7. List all products having Price greater than all the prices of 'Keyboard' and 'Mouse' 8. List all products having price greater than the prices 'Keyboard' or 'Mouse' 9. List all products which have been bought by customer 'NGUYEN THI BE' (Nguyễn Thị Bé). 10. List all products having price greater than the average price of all products in Products table.
Expert Answer:
Answer rating: 100% (QA)
ID Order ID Name Product Name ID Price 001 123 NGUYEN THI BE Mouse P01 200 002 124 surat Keyboard P0... View the full answer
Posted Date:
Students also viewed these databases questions
-
List the balance characteristics of the customers who have made purchases during the current invoice cyclethat is, for the customers who appear in the INVOICE table. The results of this query are...
-
Write an SQL query to list each customer who bought at least one product that belongs to product line Basic in March 2015. List each customer only once.
-
Write SQL queries to answer the following questions: a. List the numbers of all sections of course ISM 3113 that are offered during the semester "1-2015." b. List the course IDs and names of all...
-
The par yield curve for U.S. Treasury bonds is currently flat across all maturities at 5.50 percent. You have observed following "paired" transaction by your bond portfolio manager: Bond G H...
-
What is the difference between writing a covered and a naked call option?
-
Repeat Prob. 18.5 using Lagrange polynomials of order 1 through 3.
-
When placed between the poles of a horseshoe magnet as shown in Figure 28.12, does a rectangular current loop experience a torque? If so, in which direction does the loop rotate? Data from Figure...
-
Excel Project. Required: a. Create a 12-month cash flow budget in Excel using the following assumptions: Initial sales of $5,000,000 with forecasted monthly growth of 1% 40% of each months sales for...
-
Fluorine Limited (FL), a manufacturer of ships, has entered into the following contracts during the year ended 31 December 2022: (i) On 1 January 2022, FL entered into a contract with Alpha Limited...
-
a. What is the cost per camera (ignoring taxes) for Edwards Electronics and for Sears? b. For each store, what is the minimum selling price required to cover cost, over-head, and desired profits? c....
-
Find the break-even point for the firm whose cost function C and revenue function R are given. C(x) = 13x + 9,500; R(x) = 23x (x, y) = (
-
Donna, a chartered financial analyst (CFA) wants to advise her client about investment in preference shares. The client needs to invest in either Queens Plc. or Royal Plc.s preferred shares. Queens...
-
What is an LLC?
-
Explain in words the calculation of a firms weighted average cost of capital. What exactly are we averaging, and what do the weights represent?
-
Explain why large and growing firms tend to choose the corporate form.
-
What are the duties of a treasurer? Of a controller?
-
The Bessemer and Siemens-Martin methods revolutionized: Question 35 options: fresh food transportation. communications. textile production. steel production
-
What is a make-or-buy decision?
-
What is an off-by-one error?
-
Will the universality of management continue to be true in the future? Why or why not?
-
Describe what a manager does. How does the work of managers differ from that of nonmanagerial employees?
Study smarter with the SolutionInn App