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) 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.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 6HOA: A new table has been requested to support tracking automated emails sent to customers. Create the...
icon
Related questions
Question

 

 

  • 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)

Show the results.

  • Show how to select
  1. All products that cost more than $1000
  2. All products that have the word Yamaha or yAmaHa, etc. in their description.

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning