SQL commands

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter11: Group Functions
Section: Chapter Questions
Problem 18MC
icon
Related questions
Question
Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database.
tblSales
Y InvoiceNumber
InvoiceDate
CustomerNumber
SalesOrderNumber
tblCustomer
Required A Required B
CustomerNumber
CustomerName
CustomerAddress1
CustomerAddress2
SELECT
FROM
WHERE
CustomerCity
CustomerState
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?
CustomerZipCode
CustomerTelephone
CustomerCreditLimit
CustomerPrimaryContact
Complete this question by entering your answers in the tabs below.
Required C Required D Required E
List sales transactions made in July, 2018.
BETWEEN #7/1/2018#
AND
#7/31/2018#
AND
& Exit
Submit
Transcribed Image Text:Based on the two tables and the attributes below, write SQL commands for each question to retrieve the data from the database. tblSales Y InvoiceNumber InvoiceDate CustomerNumber SalesOrderNumber tblCustomer Required A Required B CustomerNumber CustomerName CustomerAddress1 CustomerAddress2 SELECT FROM WHERE CustomerCity CustomerState 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? CustomerZipCode CustomerTelephone CustomerCreditLimit CustomerPrimaryContact Complete this question by entering your answers in the tabs below. Required C Required D Required E List sales transactions made in July, 2018. BETWEEN #7/1/2018# AND #7/31/2018# AND & Exit Submit
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning