Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use the sample database (four tables Invoice, Product, LineItem, and Customer) in Page W1022 of CH24 to answer the following questions: a. Give a

1. Use the sample database (four tables Invoice, Product, LineItem, and Customer) in Page W1022 of CH24 to answer the following questions:

a. Give a SQL query that lists all customers in California or Nevada.

b. Give a SQL query that lists all products that have been purchased by a customer in California.

c. Give a SQL query that lists all line items that are part of invoice number 11731.

d. Give a SQL update statement that raises all prices by ten percent.image text in transcribed

W1022 Chapter 24 Relational Databases Invoice Customer Number CodeQuantity DECDAL(102) CHARC 3173 3176 3175 257-535 43-119 116 061 116 061 643-119 1733 11731 Price DECIMALC0, 2) 24.95 WCHAR (40) 11733 116-064 Hair dryer 643-119 Car vacuum 19.99 Customer City 3175 Sam Small Applia 100 Mai SeAnyton 3176 Electionis Ualimited 1 Liberty Ae Pleasatville ML Figure 8 A Sample Database 24.2.1 Simple Queries lUse the snu vuIn SQL, you use tbe SELECT cosue querics Foreample, thend to select all data trom the Customer table is a darabase. SELECT FRON Custeer The resultis City 3175 S 100 Main SueeAyoa CA 98765 3176 Electonics 1175 Libety Ae Pleasantville 5066

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 Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

What are buffers, and why are they important to life?

Answered: 1 week ago

Question

What is corporate finance?

Answered: 1 week ago