Answered step by step
Verified Expert Solution
Link Copied!

Question

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. tblSales 7 InvoiceNumber

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database. tblSales 7 InvoiceNumber InvoiceDate CustomerNumber Sales OrderNumber tblCustomer * CustomerNumber CustomerName CustomerAddressi CustomerAddress2 CustomerCity CustomerState CustomerZip Code CustomerTelephone CustomerCreditLimit Customer Primary Contact Required: 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, 2018 e. What's the number of total sales transactions made to each customer? Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E How many customer records are stored in the database? COUNT tblCustomer SELECT FROM Required A Required B > Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E List customers who live in New York. SELECT FROM WHERE 'New York' Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E List customers with credit limits greater than $50,000. SELECT FROM WHERE 50,000 Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E List sales transactions made in July, 2018. SELECT tblCustomer CustomerCity Customer CreditLimit tolSales Customer Number FROM WHERE AND BETWEEN #7/1/2018# AND #7/31/2018# Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E What's the number of total sales transactions made to each customer? SELECT COUNT AS Total FROM WHERE tbl Sales GROUP BY Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database. tblSales 7 InvoiceNumber InvoiceDate CustomerNumber Sales OrderNumber tblCustomer * CustomerNumber CustomerName CustomerAddressi CustomerAddress2 CustomerCity CustomerState CustomerZip Code CustomerTelephone CustomerCreditLimit Customer Primary Contact Required: 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, 2018 e. What's the number of total sales transactions made to each customer? Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E How many customer records are stored in the database? COUNT tblCustomer SELECT FROM Required A Required B > Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E List customers who live in New York. SELECT FROM WHERE 'New York' Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E List customers with credit limits greater than $50,000. SELECT FROM WHERE 50,000 Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E List sales transactions made in July, 2018. SELECT tblCustomer CustomerCity Customer CreditLimit tolSales Customer Number FROM WHERE AND BETWEEN #7/1/2018# AND #7/31/2018# Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E What's the number of total sales transactions made to each customer? SELECT COUNT AS Total FROM WHERE tbl Sales GROUP BY

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions