Question: Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database. a. How many
Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database.

a. How many customer records are stored in the database?
b. List customers who live in New York.
c. List customers with credit limits greater than $50,000.
d. List sales transactions made in July 2024.
e. What’s the number of total sales transactions made to each customer?
tblSales InvoiceNumber Invoice Date CustomerNumber Sales Order Number tblCustomer CustomerNumber CustomerName CustomerAddress1 CustomerAddress2 CustomerCity CustomerState CustomerZipCode CustomerTelephone CustomerCreditLimit CustomerPrimaryContact
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Based on the provided schema and attributes from tblCustomer and tblSales here are the SQL commands ... View full answer
Get step-by-step solutions from verified subject matter experts
