Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the following tables in a relational database. Provide the appropriate SQL statements necessary to answer the queries that follow. Primary keys are underlined.

image text in transcribed
1. Consider the following tables in a relational database. Provide the appropriate SQL statements necessary to answer the queries that follow. Primary keys are underlined. Foreign key fields have an asterisk at the end of the field. CUSTOMERS CUSTOMER-NO, NAME, ADDRESS, REGION, BALANCE SALESPERSONS (EID NAME, OFFICE, PHONE#, DATE-HIRED, SALARY) INVOICES (INVOICE-NO, DATE, CUSTOMER-NO* EDD* AMOUNT) ITEMS-SOLD (INVOICE-NO, ITEM-NO* QUANTITY-SOLD, SELLING-PRICE) INVENTORY (ITEM-NO, DESCRIPTION, WEIGHT, QUANTITY-ON-HAND) a) What are the names and phone numbers of salespersons who were involved in sales of items weighing more than 20 lbs? b) List the description and quantity on hand of all items sold to customers with balances greater than $10,000 1. Consider the following tables in a relational database. Provide the appropriate SQL statements necessary to answer the queries that follow. Primary keys are underlined. Foreign key fields have an asterisk at the end of the field. CUSTOMERS CUSTOMER-NO, NAME, ADDRESS, REGION, BALANCE SALESPERSONS (EID NAME, OFFICE, PHONE#, DATE-HIRED, SALARY) INVOICES (INVOICE-NO, DATE, CUSTOMER-NO* EDD* AMOUNT) ITEMS-SOLD (INVOICE-NO, ITEM-NO* QUANTITY-SOLD, SELLING-PRICE) INVENTORY (ITEM-NO, DESCRIPTION, WEIGHT, QUANTITY-ON-HAND) a) What are the names and phone numbers of salespersons who were involved in sales of items weighing more than 20 lbs? b) List the description and quantity on hand of all items sold to customers with balances greater than $10,000

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

Principles of Auditing and Other Assurance Services

Authors: Ray Whittington, Kurt Pany

20th edition

77729145, 978-1259295430, 1259295435, 978-0077729141

More Books

Students also viewed these Accounting questions