Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write an SQL query to list customer first name, last name, customer code for customers who purchased any kind of saw. (hint: p_descript like

1. Write an SQL query to list customer first name, last name, customer code for customers who purchased any kind of saw. (hint: p_descript like *saw*). You need to join the Customer, Product, Vendor, and Invoice tables for this query.

2. Write an SQL query to list customer first name, last name, and the total value of the products that have been purchased by the customer. But the result should be shown in two columns: one column is Name (which is the combination of first name and last name, separated by space or comma), the other column is TotalValue. Only show customers who have purchased more than $100.image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

CUSTOMER PRODUCT VENDOR INVOICE CUSTOMER PRODUCT VENDOR 1 INVOICE CUSTOMER PRODUCT VENDEOR VI INVOICE CUSTOMER PRODUCT VENDOR INVOICE

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

More Books

Students also viewed these Databases questions

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago