Question: Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database. Required: begin{tabular}{|l|c|c|c|} hline
Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database.

Required:




\begin{tabular}{|l|c|c|c|} \hline tblSales \\ \hline InvoiceNumber & CustomerNumber \\ CustomerNumber & CustomerName \\ SalesOrderNumber & CustomerAddress1 \\ & CustomerAddress 2 \\ & CustomerCity \\ & CustomerState \\ & CustomerZipCode \\ & CustomerTelephone \\ & CustomerCreditLimit \\ & CustomerPrimaryContact \\ \hline \end{tabular} How many customer records are stored in the database? List customers who live in New York. List customers with credit limits greater than $50,000. List sales transactions made in July, 2018. What's the number of total sales transactions made to each customer? \begin{tabular}{|l|c|c|c|} \hline tblSales \\ \hline InvoiceNumber & CustomerNumber \\ CustomerNumber & CustomerName \\ SalesOrderNumber & CustomerAddress1 \\ & CustomerAddress 2 \\ & CustomerCity \\ & CustomerState \\ & CustomerZipCode \\ & CustomerTelephone \\ & CustomerCreditLimit \\ & CustomerPrimaryContact \\ \hline \end{tabular} How many customer records are stored in the database? List customers who live in New York. List customers with credit limits greater than $50,000. List sales transactions made in July, 2018. What's the number of total sales transactions made to each customer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
