Question: 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

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!