The purpose of this assignment is to master the design of SQL retrieval queries Using HenryBooks and PremiereProducts databases in XAMPP.
For each of the following six queries, create one SQL query and test it on the appropriate database:
Premiere Products database:
- List the customer name, balance, and credit limit of customers whose
balance exceed half of their credit limit. -- [q4.sql]
- List the name of customer(s) who has (have) the highest available
credit. -- [q5.sql]
(available credit is obtained by subtracting the balance from the credit limit)
- List the last name of each rep and the description of the part
that was ordered by all customers associated with that rep. -- [q6.sql]