Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 . Use the Pine Valley Furniture ( PVF ) database for this question. Write a SQL query to display the order number, customer

Q1. Use the Pine Valley Furniture (PVF) database for this question. Write a SQL query to display the order number, customer number, order date and items ordered for the customer with ID of 5.
Q2. Use the Pine Valley Furniture (PVF) database for this question. Write a SQL query to display each customer ID and name who has bought computer desks, showing total number of orders and the total number of units bought by each customer.
Use the Pine Valley Furniture (PVF) database for this question. Write a SQL query to display the customer ID, name, state, and order ID for all customer orders. For those customers who do not have any orders, include them in the display once.
Q3. Use the AP database for this question. Create an insert statement to add a new vendor in the AP database. The new vendor information is as follows:
--VendorID =124
--VendorName = My Express Corp
--VendorAddress1= P.O. Box 2424
--VendorAddress2= Dept A
--VendorCity = Wichita
--VendorState = KS
--VendorZipCode =67204
--VendorPhone =(800)555-1234
--VendorContactLName = Williams
--VendorContactFName = Joe
--DefaultTermsID =3
--DefaultAccountNo =553
Q4. Use the AP database for this question. Write a SQL query that returns one column from the Vendors table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Separate the last name and first name by a comma (for example Doe, John). Sort the result by last name, then by first name.
Q5. Use the AP database for this question. Modify the SQL statement in the previous exercise to filter for contacts whose last name begins with the letter A, B, C, or E.

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 Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

Students also viewed these Databases questions

Question

=+7 How has the COVID-19 pandemic impacted the operations of IHRM?

Answered: 1 week ago