You designed the new database for City Jail. Now you need to create all the tables for

Question:

You designed the new database for City Jail. Now you need to create all the tables for the database. First, create all the tables using the information outlined in Section A. Second, make the modifications outlined in Section B. Save all SQL statements used to accomplish these tasks.

Section A:

Data Description Table Column Length Scale Default Value Aliases Alias_iD Numeric 6. Criminal_ID Numeric 6. Alias VariabTable Column Data Description Length Scale Default Value V_status Fixed character N (for No) P_status Fixed character N


Section B

  • Add a default value of U for the Classification column of the Crimes table.
  • Add a column named Date_Recorded to the Crimes table. This column needs to hold date values and should be set to the current date by default.
  • Add a column to the Prob_officers table to contain the pager number for each officer. The column needs to accommodate a phone number, including area code. Name the column Pager#.
  • Change the Alias column in the Aliases table to accommodate up to 20 characters.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Oracle 12c SQL

ISBN: 978-1305251038

3rd edition

Authors: Joan Casteel

Question Posted: