Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL query to show the following columns for the requirements specified: CustomerID SalesOrderNumber Requirements: OrderDate must have been placed in 2020 Customer city begins with

SQL query to show the following columns for the requirements specified:

  • CustomerID
  • SalesOrderNumber


Requirements:

  1. OrderDate must have been placed in 2020
  2. Customer city begins with either the letter S or P
  3. TotalDue for the order is at least $250
  4. image text in transcribed 

PK ProductID PRODUCT ORDER DETAILS char(4) PK SalesOrderDetailID char(6) PK SALES ORDERS SalesOrderNumber nvarchar(50) nvarchar(50) nvarchar(50) FK2 SalesOrderNum nvarchar(50) FK1 CustomerID char(5) FK1 ProductID char(4) OrderDate: datetime. nvarchar(2) OrderQty smallint DueDate datetime nvarchar(2) UnitPrice money ShipDate datetime nvarchar(2) UnitPriceDiscount money SubTotal money nvarchar(50) money money nvarchar(50) LineTotal decimal(28,6) TaxAmt Freight TotalDue money money money ProductName ProductNumber ProductLine ProductClass ProductStyle Product Color ProductStandardCost ProductListPrice ProductSize ProductSize Unit MeasureCode Product Weight nvarchar(3) decimal(8,2) Product Weight UnitMeasureCode nvarchar(3) CUSTOMER PK CustID char(5) Cust Type nvarchar(1) Addline1 nvarchar(50) AddLine2 nvarchar(50) City nvarchar(50) PostalCode nvarchar(50)

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

Java How To Program Late Objects Version

Authors: Paul Deitel, Deitel & Associates

8th Edition

0136123716, 9780136123712

More Books

Students also viewed these Databases questions

Question

=+a) What time series components do you observe in this series?

Answered: 1 week ago

Question

Explain the pages in white the expert taxes

Answered: 1 week ago

Question

Can a generic method be overloaded with a nongeneric method?

Answered: 1 week ago