Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Display the product code, product description, and product price for products provided by vendor 2 1 3 4 4 . Do NOT use

1. Display the product code, product description, and product price for products provided by vendor 21344. Do NOT use the * here but list specific attributes and also use the WHERE clause.
2. Display all product information for products currently selling for less than $50.00 and which came in between 01/01/2022 and 01/20/2022(inclusive). Use the TO _DATE(01/JAN/2022,dd/mon/yyyy) function and the between keyword (between x and y). You will use the * for all attributes and also the AND keyword. [hint: you should have 5 rows of output].
3. Display the product code, product description, price and price after discount (a computed column that uses the P_PRICE and P_DISCOUNT [a percent discount] to be named with an alias of DiscountPrice [... AS DiscountPrice]) for products for which a vendor is specified in table PRODUCT. You will specify attribute names in the SELECT and use the WHERE clause for this query. [hint: you should have 14 rows of output].
4. Display the product code, product description, product price, vendor code and vendor name for products provided by vendors located in the state of Tennessee. Since the attributes required for this query come from 2 separate tables, you will need to include those in your FROM clause and also join those 2 tables together using the PK/FK pairs WHERE T1.C1=T2.C1[refer to the diagram for the proper PK/FK from each table].[hint: you should have 6 rows of output].
P_CODE P_DESCRIPT P_INDATE P_QOH P_MIN P_PRICE P_DISCOUNT V_CODE
11QER/31 Power painter, 15 psi., 3-nozzle 03-NOV-202185109.99025595
13-Q2/P27.25 in. pwr. saw blade 13-DEC-2021321514.99.0521344
14-Q1/L39.00-in. pwr. saw blade 13-NOV-2021181217.49021344
1546-QQ2 Hrd. cloth, 14-in.,2x5015-JAN-202215839.95023119
1558-QW1 Hrd. cloth, 12-in.,3x5015-JAN-202223543.99023119
2232/QTY BD jigsaw, 12-in. blade 30-DEC-202185109.92.0524288
2232/QWE BD jigsaw, 8-in. blade 24-DEC-20216599.87.0524288
2238/QPD BD cordless drill, 12-in.20-JAN-202212538.95.0525595
23109-HB Claw hammer 20-JAN-202223109.95.121225
23114-AA Sledge hammer, 12 lb.02-JAN-20228514.4.05-
54778-2T Rat-tail file, 18-in. fine 15-DEC-202143204.99021344
89-WRE-Q Hicut chain saw, 16 in.07-FEB-2022115256.99.0524288
PVC23DRT PVC pipe, 3.5-in.,8-ft 20-FEB-2022188755.870-
SM-182771.25-in. metal screw, 2501-MAR-2022172756.99021225
SW-231162.5-in. wd. screw, 5024-FEB-20222371008.45021231
WR3/TT3 Steel, 4x8x16,.5 mesh 17-JAN-2022185119.95.125595

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions