Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose you have two tables: Table Product : PROD_ID PROD_NAME PROD_PRICE PROD_VENDOR 1101 Table 100 2 1102 Chair 80 3 1103 Armchair 90 2 1104
Suppose you have two tables: Table Product:
PROD_ID | PROD_NAME | PROD_PRICE | PROD_VENDOR |
1101 | Table | 100 | 2 |
1102 | Chair | 80 | 3 |
1103 | Armchair | 90 | 2 |
1104 | Nightstand | 110 | 1 |
1105 | Bed | 200 | 3 |
1106 | Dresser | 150 | 3 |
1107 | Daybed | 190 | 2 |
Table Vendor:
VEND_ID | VEND_NAME | VEND_ST |
1 | Green Way Inc | GA |
2 | Forrest LLC | NC |
3 | AmeriMart | NC |
Please
- Identify primary and foreign keys for each table
- Create tables using SQL. Please provide your code and screenshot.
- Insert data into the tables. Please provide SQL code and screenshot of select statements after insertion.
- Find all products that are cheaper than or equal to $150. Please provide SQL code and the screenshot of the result.
- Update table Products. Change the name of #1101 to Cherry Table. Please provide SQL code and screenshot of select statement after updating
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started