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.

Based on the two tables and the attributes below, write SQL commands

Required:

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

\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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!