23bit243F
23bit243F
COMMUNICATION TECHNOLOGY
SCHOOL OF TECHNOLOGY
PANDIT DEENDAYAL ENERGY UNIVERSITY
SESSION 2025-26
SUBMITTED BY
NAME : Kavya Agrawal
ROLL NO. : 23BIT243
DIVISION : D-4 (H11)
COURSE NAME : Database Management System Lab
COURSE CODE : 20IC208P
SUBMITTED TO
Dr. Soumyashree Panda
Assistant Professor
Department of Information and Communication Technology
Pandit Deendayal Energy University
****************
Index
1.
Introduction To Database , MySQL , 3-10
Installation , Setup Process 08/01/25
23BIT243 2
Name : Kavya Agrawal Date : 08/01/2025
Roll No : 23BIT243
LAB 1
A DBMS manages the data. The database engine enables data to be accessed, locked and
modified and the database schema defines the database's logical structure. These three
foundational data elements help provide concurrency, security, data integrity and uniform
data administration procedures.
Types of DBMS
23BIT243 3
MYSQL
MySQL is an open-source relational database management system (RDBMS) that
uses Structured Query Language (SQL) to manage data. Developed by MySQL AB and
now owned by Oracle Corporation, it’s widely used due to its reliability, speed, and ease of
use. MySQL is a key component in many web applications, forming the backbone of popular
websites and services.
It allows users to create, modify, and maintain databases, supporting operations like
data insertion, querying, updating, and deletion. Ideal for both small and large-scale
applications, MySQL powers various types of systems, from personal projects to complex
enterprise environments.
23BIT243 4
Step 2: Go to the Downloads Section
On the MySQL homepage, Click on the “No thanks, just start my download” link to proceed
MySql downloading.
23BIT243 5
Step 4: Choose Setup Type
The installer will instruct you to choose the setup type. For most users, the “Developer
Default” is suitable. Click “Next” to proceed.
23BIT243 6
Step 6: MySQL Downloading
Now that you’re in the download section, click “Execute” to start downloading the
components you selected. Wait a few minutes until all items show tick marks, indicating
completion, before moving forward.
23BIT243 7
Step 7: MySqL Installation
Now the downloaded components will be installed. Click “Execute” to start the installation
process. MySQL will be installed on your Windows system. Then click Next to proceed
Proceed to “Product Configuration” > “Type and Networking” > “Authentication Method”
Pages by clicking the “Next” button.
23BIT243 8
Step 10: Connect To Server
Enter the root password, click Check. If it says “Connection succeed,” you’ve successfully
connected to the server.
23BIT243 9
Step 12: Verify Installation
To ensure a successful installation of MySQL, open the MySQL Command Line Client or
MySQL Workbench, both available in your Start Menu. Log in using the root user credentials
you set during installation.
23BIT243 10
Name : Kavya Agrawal
Roll No : 23BIT243 Date : 16/01/2025
LAB 2
Database Operations: Creating, Inserting, and Retrieving Data in DBMS
23BIT243 11
3. For getting the entire table in the output :
23BIT243 12
23BIT243 13
Name : Kavya Agrawal Lab 2 (Assignment : 1-2 Solution) Date : 18/01/2025
Roll No : 23BIT243
23BIT243 14
2. Describe borrow, customers.
23BIT243 15
3. List all data from table DEPOSIT.
23BIT243 16
5. List all data from table CUSTOMERS.
23BIT243 17
7. Give account no and amount of depositors.
23BIT243 18
9. Give name of customers who opened account after date 'give any date'.
11 . Give account no and amount of customer having account opened between date 'give
any date’ and 'give any date’.
23BIT243 19
12. Give names of depositors having account at VRCE.
23BIT243 20
Name : Kavya Agrawal Date : 23/01/2025
Roll No : 23BIT243
LAB 3 (Assignment 3 Solution)
Create the below given table and insert the data accordingly. Create Table .
ii. Create table Employee (emp_no, emp_name, emp_sal, emp_comm, dept_no) a. Emp_no:
INT (3); b. Emp_name: VARCHAR(12); c. Emp_sal: DECIMAL(8,2); d. Emp_comm:
DECIMAL(10,0); e. Dept_no: INT (5);
23BIT243 21
Perform following queries :
23BIT243 22
2. Give details of account no. and deposited rupees of customers having account opened
between dates 01-01-06 and 25-07-06.
23BIT243 23
4. Display name and salary of employee whose department no is 20. Give alias name to name of
employee.
5. Display employee no, name and department details of those employee whose department lies in (10,
20).
23BIT243 24
6 . Display the non-null values of employees.
7. Display name of customer along with its account no (both column should be displayed as
one) whose amount is not equal to 8000 Rs.
8 . Display the content of job details with minimum salary either 2000 or 4000.
23BIT243 25
To study various options of LIKE predicate
1. Display all employee whose name start with ‘A’ and third character is ‘a’.
2. Display name, number and salary of those employees whose name is 5 characters long and
first three characters are ‘Ani’.
3. Display all information of employee whose second character of name is either ‘M’ or ‘N’.
23BIT243 26
4. Find the list of all customer name whose branch is in ‘andheri’ or ‘dadar’ or ‘virar’.
5. Display the job name whose first three character in job id field is ‘FI_’.
6. Display the title/name of job whose last three character are ‘_MGR’ and their maximum salary is
greater than Rs 12000.
23BIT243 27
7. Display the non-null values of employees and also employee name second character should
be ‘n’ and string should be 5- character long.
8. Display the null values of employee and also employee name’s third character should be ‘a’.
9 .What will be output if you are giving LIKE predicate as ‘%\_%’ ESCAPE ‘\’
23BIT243 28
23BIT243 29