Question: Given following database tables in Chapter 7, develop SQL statements for the following query requirements. Find customer code, name, phone number, and invoice date for

 Given following database tables in Chapter 7, develop SQL statements for

Given following database tables in Chapter 7, develop SQL statements for the following query requirements.

  1. Find customer code, name, phone number, and invoice date for customers who have positive balance and had invoice since Jan. 1, 2008. Order the result in descending order of balance amount.

2. Get all information about Florida vendors whose product has zero discount.

3. List product code and description with vendor name and phone number for each product. Order the list alphabetically in product code.

4. List customer name and phone number who bought any products that have more than five percent discount.

5. List all products in alphabetic order of product code with the invoice number and invoice date that the product was sold.

Customer Invoice Database ERD INVOICE LINE CUSTOMER |INV-NUMBERI. PK,FK1 PK |INV-NUMBER PK CUS CODE IPK FK1 CUS CODE .9enerates, co ain LINE NUMBER CUS LNAME CUS FNAME CUS INITIAL CUS AREACODE CUS PHONE CUS BALANCE INV DATE LINE UNITS LINE PRICE isfound in VENDOR PRODUCT PK V CODE V NAME V_CONTACTH-SUupplies V AREACODE V PHONE P DESCRIPT P INDATE V STATE V ORDER P MIN P PRICE P DISCOUNT FK1 V CODE

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!