Question: Write SQL statements for the following queries. 1) Retrieve the first and last names and salaries of customers whose age is 30 and whose salary

 Write SQL statements for the following queries. 1) Retrieve the first

Write SQL statements for the following queries. 1) Retrieve the first and last names and salaries of customers whose age is 30 and whose salary is less than 100,000 . 2) Retrieve the first and last names of customers who purchased the 'Ozark Trail Aluminum Pliers' product. 3) 'Lakeyia Henriques' purchased the 'Maxforce Fly Spot Bait - 16 Oz.' product. Retrieve the purchase date. 4) Retrieve the first and last names of employees who have no supervisor. 5) Retrieve the ids and the first and last names of customers who never purchased an item. 6) How many items did 'Ramona Higbee' (i.e., customer) purchase from 'Gisela Meunier' (i.e., employee) ? 7) Retrieve addresses of stores which have the 'Venum Classic Snapback Hat' product. 8) Retrieve the ids of products purchased by 'Trimaine Kaplan' (i.e., customer). 9) Retrieve the ids and the first and last names of customers whose age is greater than 83 and who purchased an item between '2023/02/27' and '2023/02/28'. 10) Retrieve the number of items for the 'Hot Cocoa' product

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!