Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started