0% found this document useful (0 votes)
18 views

DBMS Assignment 5

The document outlines a DBMS assignment to create tables, insert data, and perform various queries on the tables including joins. It includes instructions to create EMP and DEPARTMENT tables, queries for employee names and salaries, employees in the same job, employees earning more than a certain department, and implementing various types of joins.

Uploaded by

Sumit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

DBMS Assignment 5

The document outlines a DBMS assignment to create tables, insert data, and perform various queries on the tables including joins. It includes instructions to create EMP and DEPARTMENT tables, queries for employee names and salaries, employees in the same job, employees earning more than a certain department, and implementing various types of joins.

Uploaded by

Sumit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

DBMS Assignment 5:

Name: Sumit Kumar, Roll Number: 12


Create A Table Called EMP With The Following Structure.
Name Type:
EMPNO NUMBER(6) PRIMARY KEY

ENAME VARCHAR2(20) NOTNULL

JOB VARCHAR2(10) NULL

DEPTNO NUMBER(3) NULL

SAL NUMBER(7,2)
CREATE TABLE DEPARTMENT WITH ATTRIBUTES: DEPTNO, DNAME AND LOCATION.

Display All Employee Names And Salary Whose Salary Is Greater Than Minimum Salary Of The
Company And Job Title Starts With ‘A‘.

Issue A Query To Find All The Employees Who Work In The Same Job As Arjun.

Issue A Query To Display Information About Employees Who Earn More Than Any
Employee In Dept 1.
Display The Employee Details, Departments That The Departments Are Same In Both The
EMP And DEPARTMENT.

Display The Employee Details, Departments That The Departments Are Not Same In Both
The Emp And Dept.
Display The Details Of Those Who Draw The Salary Greater Than The Average Salary.

Display The EMP Name And Location By Implementing A Left Outer Join.

Display The EMP Name, Dept No, And Salary By Implementing A Right Outer Join.

Display The EMP Name And Dept No And Location By Implementing A Full Outer Join.

You might also like