I need help on part said update the data I get erro . Create a table as follows Inventory InvID number (10), Description varchar2(20), Price number(7,2), Quantity number(5,2) Add three constraints a) Primary key b) CHECK, price less or equal to $ 10000 c) description UNIQUE Enter the following data, assign inventory IDs as seems needed to you for your inventory. MOUNTAIN SKIS $500 7pcs MOTOBIKE $600 2pcs SKATEBOARD $300 5pcs SNOWBOARD $360 7pcs Update two first records to FIBERGLASS MOUNTAIN SKIS $650 YAMAHA SPORTS BIKE $6000 (If you cannot update for any reason, alter table to make sure that you can do the updates) UPDATE INVENTORY SET DESCRIPTION="FIBERGLASS MOUNTAIN SKIS", PRICE=650 WHERE ID=1; Show the results. Show how to select All products that cost more than $1000 All products that have the word Yamaha or yAmaHa, etc. in their description.
I need help on part said update the data I get erro .
- Create a table as follows
Inventory
InvID number (10),
Description varchar2(20),
Price number(7,2),
Quantity number(5,2)
- Add three constraints a) Primary key b) CHECK, price less or equal to $ 10000 c) description UNIQUE
- Enter the following data, assign inventory IDs as seems needed to you for your inventory.
MOUNTAIN SKIS $500 7pcs
MOTOBIKE $600 2pcs
SKATEBOARD $300 5pcs
SNOWBOARD $360 7pcs
- Update two first records to
FIBERGLASS MOUNTAIN SKIS $650
YAMAHA SPORTS BIKE $6000
(If you cannot update for any reason, alter table to make sure that you can do the updates)
UPDATE INVENTORY SET DESCRIPTION="FIBERGLASS MOUNTAIN SKIS", PRICE=650 WHERE ID=1;
Show the results.
- Show how to select
- All products that cost more than $1000
- All products that have the word Yamaha or yAmaHa, etc. in their description.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images