Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The goal is to write SQL that will CREATE the test_table1 table seen in Creating a simple table (Links to an external site.) . BUT

The goal is to write SQL that will CREATE the test_table1 table seen in Creating a simple table (Links to an external site.) . BUT THE TABLE WILL ALSO HAVE:

  • col3 to hold the exact number of characters for a social security number (which is 11 characters long)
  • col4 to hold a price (which should always be less than 1000, and have 2 decimal points precision)
    • This has to do with how the NUMBER type can specify size and precision
    • Given the stipulation for col4, Oracle should not let you store a value of 1000 or higher.
  • For those two columns, you need to choose the correct data type
  • Ensure your SQL keywords are capitalized and semicolon is used!
    • The instructor doesn't do that, but we will
  • If you mess up, and you create test_table1 incorrectly, you can delete the table and try the CREATE again later.
    • SQL Workshop > Object Browser
    • Click on TEST_TABLE1
    • Click on Drop

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

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Describe six biases affecting perception.

Answered: 1 week ago

Question

7. Explain why retirees may be valuable as part-time employees.

Answered: 1 week ago

Question

3. Provide advice on how to help a plateaued employee.

Answered: 1 week ago