Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started