Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
