Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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 For Advanced Applications 9th International Conference Dasfaa 2004 Jeju Island Korea March 2004 Proceedings Lncs 2973

Authors: YoonJoon Lee ,Jianzhong Li ,Kyu-Young Whang

2004th Edition

3540210474, 978-3540210474

More Books

Students also viewed these Databases questions

Question

What potential obstacles stand in my way?

Answered: 1 week ago

Question

The company openly shares plans and information with employees.

Answered: 1 week ago