Question: 1. Create the DEPARTMENT table based on the following table instance chart. Enter the syntax in a script called p10q1.sql, then execute the script to

1. Create the DEPARTMENT table based on the following table instance chart. Enter the syntax in a script called p10q1.sql, then execute the script to create the table. Confirm that the table is created.

Name Null? Type ---------- -------- ---------- ID NUMBER(7) NAME VARCHAR2(25)

1. Create the DEPARTMENT table based on the following table instance chart.

2. Populate the DEPARTMENT table with data from the DEPT table. Include only columns that you need.

3. Create the EMPLOYEE table based on the following table instance chart. Enter the syntax in a script called p10q3.sql, and then execute the script to create the table. Confirm that the table is created.

Enter the syntax in a script called p10q1.sql, then execute the script

4. Modify the EMPLOYEE table to allow for longer employee last names. Confirm your modification.

to create the table. Confirm that the table is created. Name Null?

5. Confirm that both the DEPARTMENT and EMPLOYEE tables are stored in the data dictionary. (Hint: USER_TABLES)

Type ---------- -------- ---------- ID NUMBER(7) NAME VARCHAR2(25) 2. Populate the DEPARTMENT

6. Create the EMPLOYEE2 table based on the structure of the EMP table. Include only the EMPNO, ENAME, and DEPTNO columns. Name the columns in your new table ID, LAST_NAME, and DEPT_ID, respectively.

Column Name Key Type Nulls/Unique FK Table FK Col umn Datatype Length Id Name Number Varchar2 25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!