1. Write SQL query to show the following columns, subject to the requirements listed. Columns to include in the result: o Dealer ID, Dealer Name 。 Make, Model, Year, sellDate, and Sale Price of vehicle in stock sold to a customer 0 CustID and cName of customer vehicle in stock was sold to • Requirements: o. Dealer city is any one of the following, and 0 0 Glendale, Hayward, Irvine, Lancaster, Long Beach, Los Angeles, Moreno Valley, North Hollywood, Northridge Either sale price is at least 25000 or the sell date was in 2021 DATABASE NAME: CARSALES DB DIAGRAM: see below for table and column names. Column data types: see within the implementation on SQL Server. CUSTOMER VEHICLE-IN-STOCK CustID cName streetAddress city State zipCode R vin stockDate sellDate salePrice make model year custl▷ dealerID DEALER የ dealer D [dealer name] streetAddress city d State drZipCode 8 VEHICLE make model year msrp trim

Practical Management Science
6th Edition
ISBN:9781337406659
Author:WINSTON, Wayne L.
Publisher:WINSTON, Wayne L.
Chapter2: Introduction To Spreadsheet Modeling
Section: Chapter Questions
Problem 20P: Julie James is opening a lemonade stand. She believes the fixed cost per week of running the stand...
icon
Related questions
Question

.

1. Write SQL query to show the following columns, subject to the requirements listed.
Columns to include in the result:
o Dealer ID, Dealer Name
。
Make, Model, Year, sellDate, and Sale Price of vehicle in stock sold to a
customer
0 CustID and cName of customer vehicle in stock was sold to
• Requirements:
o. Dealer city is any one of the following, and
0
0
Glendale, Hayward, Irvine, Lancaster, Long Beach, Los Angeles, Moreno
Valley, North Hollywood, Northridge
Either sale price is at least 25000 or the sell date was in 2021
Transcribed Image Text:1. Write SQL query to show the following columns, subject to the requirements listed. Columns to include in the result: o Dealer ID, Dealer Name 。 Make, Model, Year, sellDate, and Sale Price of vehicle in stock sold to a customer 0 CustID and cName of customer vehicle in stock was sold to • Requirements: o. Dealer city is any one of the following, and 0 0 Glendale, Hayward, Irvine, Lancaster, Long Beach, Los Angeles, Moreno Valley, North Hollywood, Northridge Either sale price is at least 25000 or the sell date was in 2021
DATABASE NAME: CARSALES DB
DIAGRAM: see below for table and column names.
Column data types: see within the implementation on SQL Server.
CUSTOMER
VEHICLE-IN-STOCK
CustID
cName
streetAddress
city
State
zipCode
R
vin
stockDate
sellDate
salePrice
make
model
year
custl▷
dealerID
DEALER
የ dealer D
[dealer name]
streetAddress
city
d State
drZipCode
8
VEHICLE
make
model
year
msrp
trim
Transcribed Image Text:DATABASE NAME: CARSALES DB DIAGRAM: see below for table and column names. Column data types: see within the implementation on SQL Server. CUSTOMER VEHICLE-IN-STOCK CustID cName streetAddress city State zipCode R vin stockDate sellDate salePrice make model year custl▷ dealerID DEALER የ dealer D [dealer name] streetAddress city d State drZipCode 8 VEHICLE make model year msrp trim
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Practical Management Science
Practical Management Science
Operations Management
ISBN:
9781337406659
Author:
WINSTON, Wayne L.
Publisher:
Cengage,
Operations Management
Operations Management
Operations Management
ISBN:
9781259667473
Author:
William J Stevenson
Publisher:
McGraw-Hill Education
Operations and Supply Chain Management (Mcgraw-hi…
Operations and Supply Chain Management (Mcgraw-hi…
Operations Management
ISBN:
9781259666100
Author:
F. Robert Jacobs, Richard B Chase
Publisher:
McGraw-Hill Education
Business in Action
Business in Action
Operations Management
ISBN:
9780135198100
Author:
BOVEE
Publisher:
PEARSON CO
Purchasing and Supply Chain Management
Purchasing and Supply Chain Management
Operations Management
ISBN:
9781285869681
Author:
Robert M. Monczka, Robert B. Handfield, Larry C. Giunipero, James L. Patterson
Publisher:
Cengage Learning
Production and Operations Analysis, Seventh Editi…
Production and Operations Analysis, Seventh Editi…
Operations Management
ISBN:
9781478623069
Author:
Steven Nahmias, Tava Lennon Olsen
Publisher:
Waveland Press, Inc.