0% found this document useful (0 votes)
4 views29 pages

23bit243F

This document is a lab report submitted by Kavya Agrawal for the Database Management System Lab course at Pandit Deendayal Energy University for the session 2025-26. It includes an introduction to databases and MySQL, installation steps, and various database operations such as creating, inserting, and retrieving data. The report also contains assignments with solutions related to database queries and table creation.

Uploaded by

Zala Mayank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views29 pages

23bit243F

This document is a lab report submitted by Kavya Agrawal for the Database Management System Lab course at Pandit Deendayal Energy University for the session 2025-26. It includes an introduction to databases and MySQL, installation steps, and various database operations such as creating, inserting, and retrieving data. The report also contains assignments with solutions related to database queries and table creation.

Uploaded by

Zala Mayank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

DEPARTMENT OF INFORMATION AND

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

Sr. Title Page Date Sign/remark


No
No

1.
Introduction To Database , MySQL , 3-10
Installation , Setup Process 08/01/25

2. Database Operations: Creating, Inserting, 11-13 16/01/25


and Retrieving Data in DBMS
3. Assignment : 1-2 Solution 14-20 18/01/25

4. Assignment 3 20-28 23/01/25

23BIT243 2
Name : Kavya Agrawal Date : 08/01/2025
Roll No : 23BIT243
LAB 1

INTRODUCTION TO DATABASE , MYSQL , INSTALLATION , SETUP PROCESS

Database Management System :


A database management system (DBMS) is a software system for creating and managing
databases. A DBMS enables end users to create, protect, read, update and delete data in a
database. It also manages security, data integrity and concurrency for databases.

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

1. Relational Database Management System (RDBMS): Data is organized into tables


(relations) with rows and columns, and the relationships between the data are
managed through primary and foreign keys. SQL (Structured Query Language) is
used to query and manipulate the data. Examples are MySQL, Oracle, Microsoft SQL
Server and Postgre SQL.
2. NoSQL DBMS: Designed for high-performance scenarios and large-scale data,
NoSQL databases store data in various non-relational formats such as key-value pairs,
documents, graphs, or columns. Examples are NoSQL DBMS are MongoDB,
Cassandra, DynamoDB and Redis.
3. Object-Oriented DBMS (OODBMS): Stores data as objects, similar to those used in
object-oriented programming, allowing for complex data representations and
relationships.
Use Cases of OODBMS :
Computer-Aided Design (CAD) Systems
Multimedia and Graphics Applications
Geographic Information Systems (GIS)
Real-Time Systems
Artificial Intelligence and Machine Learning Applications

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.

Download and Install MySQL for Windows Steps

Step 1: Visit the Official MySQL Website


Open your preferred web browser and navigate to the official MySQL website. Now, Simple
click on first download button.

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.

Step 3: Run the Installer


After MySQL downloading MySQL.exe file, go to your Downloads folder, find the file, and
double-click to run the installer.

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.

Step 5: Check Requirements


You might be prompted to install necessary MySQL software, typically Visual Code. The
installer can auto-resolve some issues, but not in this case.

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

Step 8: Navigate to Few Configuration Pages

Proceed to “Product Configuration” > “Type and Networking” > “Authentication Method”
Pages by clicking the “Next” button.

Step 9: Create MySQL Accounts


Create a password for the MySQL root user. Ensure it’s strong and memorable. Click “Next”
to proceed.

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.

Step 11: Complete Installation


Once the installation is complete, click “Finish.” Congratulations! MySQL is now installed
on your Windows system.

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

1. Showing the Database :

2.Inserting the values in the table:

23BIT243 11
3. For getting the entire table in the output :

4. For getting the values upto a certain limit

5. For getting a particular value

23BIT243 12
23BIT243 13
Name : Kavya Agrawal Lab 2 (Assignment : 1-2 Solution) Date : 18/01/2025
Roll No : 23BIT243

To study DDL-create and DML-insert commands :

From the above given tables perform the following queries:

1. Describe deposit, branch.

23BIT243 14
2. Describe borrow, customers.

23BIT243 15
3. List all data from table DEPOSIT.

4. List all data from table BORROW.

23BIT243 16
5. List all data from table CUSTOMERS.

6. List all data from table BRANCH.

23BIT243 17
7. Give account no and amount of depositors.

8. Give name of depositors having amount greater than 4000.

23BIT243 18
9. Give name of customers who opened account after date 'give any date'.

10 . Give name of city where branch karolbagh is located.

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 .

i. Job (job_id, job_title, min_sal, max_sal) a. Job_id: VARCHAR(15); b. Job_title:


VARCHAR(30); c. Min_sal: DECIMAL(7,2); d. Max_sal: DECIMAL(7,2);

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);

iii. Create table Deposit (acc_no, city_name, branch_name, amount,


a_date). a. acc_no: INT(3); b. city_name: VARCHAR(12); c. branch_name: VARCHAR(8); d. amount:
DECIMAL(10,0); e. a_date: DATE;

23BIT243 21
Perform following queries :

1. Retrieve all data from employee, jobs and deposit.

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.

3. Display all jobs with minimum salary is greater than 4000.

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

You might also like