Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

4. How do rules guide verbal communication?

Answered: 1 week ago