Problem 1.1: Create a table called EMP with the following structure. Name Турe EMPNO NUMBER(6) ENAME VARCHAR2(20) JOB VARCHAR2(10) MGR NUMBER(4) DEPTNO NUMBER(3) SAL NUMBER(7,2) Problem 1.2: Add a column COMMISSION which can hold NULL value. Problem 1.3: Modify the column width and data type of the JOB field of EMP1 table. Problem 1.4: Create DEPT table with the following structure. NAME TYPE DEPTNO NUMBER(2) DNAME VARCHAR2(10) LOC VARCHAR2(10) DEPTNO as the PRIMARY KEY Problem 1.5: Add constraints to the EMP1 table that EMPNO as the PRIMARY KEY and DEPTNO as the FOREIGN KEY. Problem 1.6: Add constraints to the EMP1 table to check the EMPNO value while entering (Le) EMPNO > 100. Problem 1.7: Salary value by default is 5000, otherwise as entered values. Problem 1.8: Add a column DOB to the EMP1 table. Problem 1.9: DROP the column DOB from EMP1 table. Problem 1.10: Create the table EMP2 with all its columns from EMP1 using AS SELECT keyword. Delete all its records and finally DROP the EMP2 (pseudo table).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

help me in this questions 

Problem 1.1: Create a table called EMP with the following structure.
Name
Type
EMPNO
NUMBER(6)
ENAME
VARCHAR2(20)
JOB
VARCHAR2(10)
MGR
NUMBER(4)
DEPTNO
NUMBER(3)
SAL
NUMBER(7,2)
Problem 1.2: Add a column COMMISSION which can hold NULL value.
Problem 1.3: Modify the column width and data type of the JOB field of EMP1 table.
Problem 1.4: Create DEPT table with the following structure.
NAME
TYPE
DEPTNO
NUMBER(2)
DNAME
VARCHAR2(10)
LOC
VARCHAR2(10)
DEPTNO as the PRIMARY KEY
Problem 1.5: Add constraints to the EMP1 table that EMPNO as the PRIMARY KEY and
DEPTNO as the FOREIGN KEY.
Problem 1.6: Add constraints to the EMP1 table to check the EMPNO value while
entering (L.e) EMPNO > 100.
Problem 1.7: Salary value by default is 5000, otherwise as entered values.
Problem 1.8: Add a column DOB to the EMP1 table.
Problem 1.9: DROP the column DOB from EMP1 table.
Problem 1.10: Create the table EMP2 with all ts columns from EMP1 using AS SELECT
keyword. Delete all ts rcords and finally DROP the EMP2 (pseudo table).
Transcribed Image Text:Problem 1.1: Create a table called EMP with the following structure. Name Type EMPNO NUMBER(6) ENAME VARCHAR2(20) JOB VARCHAR2(10) MGR NUMBER(4) DEPTNO NUMBER(3) SAL NUMBER(7,2) Problem 1.2: Add a column COMMISSION which can hold NULL value. Problem 1.3: Modify the column width and data type of the JOB field of EMP1 table. Problem 1.4: Create DEPT table with the following structure. NAME TYPE DEPTNO NUMBER(2) DNAME VARCHAR2(10) LOC VARCHAR2(10) DEPTNO as the PRIMARY KEY Problem 1.5: Add constraints to the EMP1 table that EMPNO as the PRIMARY KEY and DEPTNO as the FOREIGN KEY. Problem 1.6: Add constraints to the EMP1 table to check the EMPNO value while entering (L.e) EMPNO > 100. Problem 1.7: Salary value by default is 5000, otherwise as entered values. Problem 1.8: Add a column DOB to the EMP1 table. Problem 1.9: DROP the column DOB from EMP1 table. Problem 1.10: Create the table EMP2 with all ts columns from EMP1 using AS SELECT keyword. Delete all ts rcords and finally DROP the EMP2 (pseudo table).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY