DBMS Lab File Program List
DBMS Lab File Program List
Greater Noida
DBMS Workshop
Branch: IT Semester: IV
Session: 2024-25
Subject Name: Subject Code: BCSE0452
DBMS
S. Date of
25 Semester: IV
No.
Program Name Assign
Grade Signature Remark
1.1 Understand and implement the different ER diagram notation with their
relationship and Cardinalities.
1.2 Creating ER Diagram for company Database. Company database have entities
like employee, departments, projects and dependents also implement the
relationship and cardinalities between the entities with their relevant attribute.
1.3 Design an ER diagram for a travel agency that includes entities such as
travellers, bookings, destinations, and itineraries. also implement the
relationship and cardinalities between the entities with their relevant attribute.
1.4 Converting Company & Travel Agency ER Model to Relational Model
(Represent entities and relationships in tabular form, represent attributes as
columns, identifying keys).
1.5 Each students create at least one ER & EER diagram from real world problem
and convert in tabular from with all needed constraint.
1.6 Implement DDL and DML commands
1.7 Implement DCL & TCL commands
2.8 Implementation of Queries using Where, Group by, Having and Order by
Clause.
2.9 Implementation and uses of clause and operators on Company/ Travel Agency
or other database.
i. Find the name of employee whose name start with A.
ii. Find the name of employee where 'hi' in any position.
iii. Find the name of employee whose 'r' have in second position.
iv. Find the details of employee whose salary is less than 70000.
v. Find the name of employee whose name start with V and end with l.
vi. Find the average salary of each department
vii. Find the max salary of each department
viii. Find the sum of salary of department that have more than three
employees in ascending order.
ix. Find the empid of Employee who work in more than 3 project.
x. Find the empid who have more than one dependent.
xi. K. Implement the concept of rollback and commit on Employee Table.
2.10 Create a table EMPLOYEE with following schema:- (Emp_no, E_name,
E_address, E_ph_no, Dept_no, Dept_name,Job_id, Designation, Salary)
Write SQL statements for the following query.
i. List the E_no, E name, Salary of all employees working for MANAGER.
ii. Display all the details of the employee whose salary is more than the Sal
of any IT PROFF.
iii. List the employees in the ascending order of Designations of those
joined after 1981.
iv. List the employees along with their Experience and Daily Salary.
v. List the employee who are either 'CLERK' or 'ANALYST'
vi. List the employees who joined on 1-MAY-81, 3-DEC-81, 17-DEC-81,19-
JAN-80 .
vii. List the employees who are working for the Deptno 10 or 20.
viii. List the E-names those are starting with 'S'.
ix. Display the name as well as the first five characters of name(s) starting
with 'H'.
x. List all the emps except 'PRESIDENT' & 'MGR' in asc order of salaries.
xi. Display total salary spent for each job category.
xii. Display lowest paid employee details under each manager.
xiii. Display number of employees working in each department and their
department name.
xiv. Display the details of employees sorting the salary in increasing order.
xv. Show the record of employee earning salary greater than 16000 in each
department.
xvi. Add constraints to check, while entering the empno value (i.e) empno >
100.
xvii. Define the field DEPTNO as unique.
xviii. Create a primary key constraint for the column (EMPNO).
2.11 Implement and apply the different form of normalization approach on company
/Travel Agency Database .
3.1 Implementation of Queries using set theory operators UNION, INTERSECT,
MINUS.
3.2 Implementation of Queries using Inner Join:- Natural Join , Equi Join & Non
Equi Join
3.3 Implementation of Queries using Outer Join :- Left Outer Join, Right Outer Join
and Full Outer Join
3.4 Implementation of Queries nested Queries or Sub Queries: - IN, NOT IN,
Exists, Not Exists, All and Any.
3.5 Apply the set theory operators, joins, nested queries on company database
(case study-1)
Write the SQL Queries for the following statement
i. Retrieve the names of employees in department 5 who work more than 10
hours per week on the
'ProductX'project.
ii. List the names of employees who have a dependent with the same first
name as themselves.
iii. Find the names of employees that are directly supervised by 'Franklin
Wong'.
iv. For each project, list the project name and the total hours per week (by
all employees) spent on that
project.
v. Retrieve the names of all employees who work on every project controlled
by department 5.
vi. Retrieve the names of
employees who do not work on every project
vii. For each department, retrieve the department name, and the average
salary of employees working in
that department.
viii. Retrieve the average salary of all female employees.
ix. Find the names and addresses of all employees who work on at least one
project located in Houston
but whose department has no location in Houston.
x. List the last names of department managers who have no dependents.
xi. Retrieve the names of all employees who work in the department that has
the employee with the
highest
xii. salary among all employees.
xiii. retrieve the names of all employees whose supervisor has '888665555'
for ssn.
xiv. For each department that has more than 5 employees retrieve the dno
and no. of its employees who
are making more than 6,00,000
xv. Find the sum of salaries of all employee of 'ACCOUNTS' department as
well as the MAX(SAL),MIN(SAL),AVG(SAL) in this department
xvi. Show the resulting salary for employee working on IOT project is given a
10% raise.
3.6 Requirement: A college consists of number of employees working in different
departments. In this context, create two tables, employee and department.
Employee consists of columns empno, empname, basic, hra,da, deductions,
gross, net, date-of-birth. The calculation of hra, da are as per the rules of the
college. Initially only
empno, empname, basic have valid values. Other values are to be computed and
updated later. Department
containsdeptno, deptname, and description columns. Deptno is the primary key
in department table and
referential integrity constraint exists between employee and department tables.
Perform the following
operations on the database:
i. Create tables department and employee with required constraints.
ii. Initially only the few columns (essential) are to be added. Add the
remaining columns separately by
using appropriate SQL command 3. Basic column should not be null.
iii. The default value for date-of-birth is 1 Jan, 1990.
iv. When the employees called daily-wagers are to be added the constraint
that salary should be greater
than or equal to 5000 should be dropped.
v. Display the information of the employees and departments with
description of the fields.
vi. Display the average salary of all the departments.
vii. Display the average salary department wise. 9. Display the maximum
salary of each department and
also all departments put together.
viii. Commit the changes whenever required and rollback if necessary.
ix. Find the employees whose salary is between 5000 and 10000 but not exactly
7500.
x. Find the employees whose name contains'en'.
xi. 12.Create alias for columns and use them in queries.
xii. 13. List the employees according to ascending order of salary.
xiii. 14. List the employees according to ascending order of salary in each
department.
xiv. Find the employees who are born on Feb 29.
xv. Find the departments where the salary of at-least one employee is more
than 20000.
xvi. Find the departments where the salary of all the employees is less than
20000.
xvii. Add the column dept_location in department table.
3.7 Understand & implement the Database Connectivity with Java/Python etc.
programming language.
3.8 Implementation and apply all the set theory operators, join and nested
queriesconcept on Case study 1.
i. Make a list of all project members for projects that involve an employee
whose name is SCOTT either
as a worker or as a manager of the department that controls the project.
ii. To retrieve the Social Security numbers of all employees who either work
in department 5 or directly
supervise an employee who works in department 5.
iii. To retrieve the SSN of all employee who work as a supervisor not a
manager.
iv. D To retrieve the SSN of all employee who work as a supervisor and
also manage the department.
v. we want to retrieve a list of names of each femae employee's dependents
vi. We want a list of all employee names as well as the name of the
departments they manage if they
happen to manage a department; if they do not manage one, we can indicate it
with a NULL value.
vii. Retrieve the names of employees who have no dependents.
viii. List the names of all employees with two or more dependents.
ix. List the names of managers who have at least one dependent.
x. Retrieve the names of all employees who do not have supervisors.
xi. Retrieve the name of each employee who has a dependent with the same
first name and is the same sex as the employee.
3.9 Create Desktop/Web application using the database connectivity.