Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 3 . This question refers to the Sales Orders database in Week 2 | Learning Materials & Resources. Write SQL queries below for each

Q3. This question refers to the Sales Orders database in Week 2| Learning Materials & Resources. Write SQL queries below for each of the following. Note that I am asking for the SQL query only, not the results of that query. Heres an example. Question: List the entire customers table. Answer: Select * From Customers
a. List the names and cities of all customers
b. List the different states the vendors come from (unique values only, no duplicates)
c. Find the number of customers in California
d. List names of all employees who have sold to customer Rachel Patterson (Note: You can only use the information given in the question, i.e. you cannot first look up Rachel Pattersons Customer ID and use that ID in your query).

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_2

Step: 3

blur-text-image_3

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

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions