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

DBMS Lab File Program List

The document outlines a comprehensive DBMS workshop curriculum for IT students at the Noida Institute of Engineering & Technology. It includes various programming assignments related to ER diagrams, SQL commands, database normalization, and MongoDB operations. The workshop aims to equip students with practical skills in database management and programming through hands-on projects and exercises.

Uploaded by

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

DBMS Lab File Program List

The document outlines a comprehensive DBMS workshop curriculum for IT students at the Noida Institute of Engineering & Technology. It includes various programming assignments related to ER diagrams, SQL commands, database normalization, and MongoDB operations. The workshop aims to equip students with practical skills in database management and programming through hands-on projects and exercises.

Uploaded by

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

Noida Institute of Engineering & Technology,

Greater Noida

DBMS Workshop

Branch: IT Semester: IV
Session: 2024-25
Subject Name: Subject Code: BCSE0452
DBMS

Student Name: Faculty Name:


Shubham Kumar Mr. Vikrant Malik
Roll no:
2301330130050

Department of Information Technology


NOIDA INSTITUTE OF ENGINEERING & TECHNOLOGY
19, KNOWLEDGE PARK-II, INSTITUTIONAL AREA,
GREATER NOIDA, (U. P.) - 201 306, INDIA
PROGRAM LIST Session: 2024-

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

1.8 i. Create Database, Rename Database, Delete Database in relational database


tool.
ii. Create table employee with
attributes Emp_no<datatype><size>
E_name<datatype><size>
JOB <datatype><size>
Address <datatype><size>
Salary<datatype><Size>
iii. Insert data into the table
iv. Implementation of select command
v. Implementation of update command
vi. Implementation of alter command
vii. Implementation of delete command
viii. Implementation of rename command.
ix. Implementation of rollback command
x. Implementation of commit Command
xi. Implementation of Truncate Command
xii. Implementation of Drop Command
2.1 Implementation of I/O Constraint: Primary Key, composite primary key,
Foreign Key with on delete set null and on delete set null constraint
2.2 Implementation of constraint: Unique Key and Composite unique key and uses
Unique key as foreign key.
2.3 Implementation of Business Constraint: Null, Not Null, Default, Check.
2.4 Practicing Queries using Like, Between, Aliases, distinct Operator & Predicate.
2.5 Implementation of Aggregate Functions.
2.6 Reduction & Implementation in SQL for ER Diagram of Company Database: -
i. Create table for EMPLOYEE, DEPARTMET, PROJECT, DEPENDENTS
and WORK_ON with all needed keys and other constraints.
ii. Populated all table with atleast Ten records in each table as per as applied
constraints.
2.7 Implementation of Scalar, Mathematical and Advanced functions.

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.

4.1 Implementation of Array Function


4.2 Implementation of Array Operators
4.3 Implementation of Indexing, Views and sequence
4.4 i. Write a PL/SQL Program to Add Two Numbers
ii. Write PL/SQL Program for Fibonacci Series
iii. Write PL/SQL Program to Find Greatest of Three Numbers
4.5 write a Pl/SQL code block to calculate the area of a circle for a value of radius
varying from 3 to 7. Store the radius and the corresponding values of calculated
area in an empty table named Areas, consisting of two columns Radius and
Area.
4.6 Write a PL/SQL code block that will accept an account number from the user,
check if the users balance is less than the minimum balance, only then deduct
Rs.100/- from the balance.
4.7 Create a row level trigger for the customers table that would fire for INSERT or
UPDATE or DELETE operations
performed on the CUSTOMERS table. This trigger will display the salary
difference between the old values and new values
4.8 Implementation of commit and rollback statement with amount transfer
example.
4.9 Implementation array, indexing, transaction concept on Case study 1.
i. Implementation of Array Functions & Operators
ii. Implementation of Sequence
-Creating Sequences
-Modifying a Sequence Definition
-Removing Sequences
iii. Implementation of Views
-Creating Simple and Complex Views
-Modifying Views
-Removing Views
iv. Implementation of Indexes
-Manual and Automatic Indexes
-Creating Indexes
- Removing Indexes
4.10 i. Write a PL/SQL block to calculate the incentive of an employee whose ID
is 110.
ii. Grant and revoke DCL command used on Employee table
-GRANT SELECT ON Employee TO emp_name;
-Granting multiple privileges on Employee table
-Granting all privileges on Employee table;
-Granting privilege to a role in Employee table
-Granting the WITH GRANT OPTION on Employee table.
-Revoke all the permission applied on Employee table.
iii. Create the CUSTOMERS table having the following attributes:
- (ID, NAME, AGE, ADDRESS, SALARY)
- Insert ten records in customer table.
-In Customer table delete those records which have age = 25 and then
COMMIT the changes in the database.
-In Customer table delete those records which have age = 30 and then Rollback
the changes in the database.
- Create three savepoint for customer table in that the three deletions have taken
place.
- Apply the savepoint 2 with rollback on customer table and display the
table record.
- Apply the SET Transaction command.
5.1 Study of Open Source NOSQL Database and installation of MongoDB
5.2 Create, drop, rename the database in MongoDB
5.3 Implementation the MongoDB Operators.
5.4 Implementation the CRUD Operation in MongoDB
5.5 Deployment the data on different tools like HBASE, Riak and
Cassandra
5.6 Implementation of all CRUD operation, Cursor and aggregate etc. on
real world problem.
Connect to MongoDB (by using mongo shell)
i. Create database with name (ems) - use ems;
ii. Create collection with following fields:
{"name", age", gender","exp, subjects, "type"" qualification"},
iii. Insert the Ten documents into "faculty" collection (Use
insertMany()) Write the following queries:
i. Get the details of all the faculty.
ii. Get the count of all faculty members.
iii. Get all the faculty members whose qualification is "Ph.D"
iv. Get all the faculty members whose experience is between 8 to 12
years.
v. Get all the faculty members who teach "MATHS" or
"NETWORKING".
vi. Get all the faculty members who teach "MATHS" and whose
age is more than 30 years and qualification must be "Ph.D"
vii. Get all the faculty members who are working part-time or
who each "JAVA"
viii. Add the following new faculty members:
{"name":"Ankita ", "age":34,"gender":"F","exp":25,
subjects:
["MATHS","DE"],"type":"Full Time","qualification":"Ph.D"}
ix. Update the data of all faculty members by incrementing their age
and exp by one year.
x. Update the faculty "sivani" with the following data: update
qualification to "Ph.D" and type to "FULL Time".
xi. Update all faculty members who are teaching "DBMS" such that
they should now also teach "JAVA Programming".
xii. Delete all faculty members whose age is more than 55 years.
xiii. Get only the name and qualification of all faculty members.
xiv. Get the name, qualification and exp of all faculty members and
display the same in ascending order of exp.
xv. Sort the faculty details by their age (descending order) and get the
details of
the first five faculty members only.
5.7 Implementation of the MongoDB Shell commands

5.8 Implementation of MongoDB Cursor and their methods


5.9 Implementation of relation in MongoDB
5.10 Implementation of Aggregate in MongoDB
5.11 Implementation of case Study on different domain
i. E-commerce Platform
ii. Inventory Management
iii. Railway System
iv. Hospital Data Management
v. Voice-based Transport Enquiry System
vi. SMS-based Remote Server Monitor system
vii. Banking System
viii. AI based

You might also like