Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a query to count the number of customers with a balance of more than $500. 2. Create a query to produce the total

image text in transcribed

1. Write a query to count the number of customers with a balance of more than $500.

2. Create a query to produce the total purchase per invoice sorted by invoice number. The invoice total is the sum of the product purchases in the LINE that corresponds to the INVOICE.

3. List the balances of customers who have made purchases during the current invoice cyclethat is, for the customers who appear in the INVOICE table. The results of this query are sorted by customer code.

FIGURE P7.9 THE CH07 SALECO DATABASE Relational diagram CUSTOMER LINE ENDOR PK INVOICE V Name V AreaCode V State an-FName K3 Cun Code Cus Phone Cus Balance Line Price Price Discount Order K V Code Table name: VENDOR Table name: CUSTOMER On 215 8095 1344 Oome Bro Orteg 2946 K 22-167 2-1810 501 6002 Table name: INVOICE Table name: LINE Table name: PRODUCT 3-D-17318149 344 100 00 344 000 2 $477 -2 003 003 1004 1004 09 s 02 SH-1827 0o 344 100 008 0023 1109 1000 19

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

Students also viewed these Databases questions