Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Add constraints to the EMP table that EMPNO as the PRIMARY KEY and DEPTNO as the FOREIGN KEY. Inserting 7 records using a single INSERT

Add constraints to the EMP table that EMPNO as the PRIMARY KEY and DEPTNO as the FOREIGN KEY.
Inserting 7 records using a single INSERT ALL commands in both tables
Add constraints to the EMP table to check the EMPNO value while entering (i.e) EMPNO >100
Add a column DOB to the EMP table.
Update the EMP table to set the commission of all employees to Rs 1000/- who are working as MANAGERS.
Create a MANAGER table from the EMP table which should hold details only about the managers
List the EMPLOYEE NAMES and the DEPARTMENT NAME in which they are working.
Display the rows whose EMPNO ranges from 1002 to 1005.
Count the total records in the emp table
Display the employee name and department name in which they are working implementing a right outer join

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions