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

Lab Mannual Part 1 DBMS

The document outlines the curriculum for a Database Management System Lab course at Maharishi University of Information Technology, detailing various experiments including installing MySQL, creating Entity-Relationship Diagrams, and writing SQL statements. It provides step-by-step instructions for installing MySQL on Windows and guidelines for creating ER diagrams. The course aims to equip students with practical skills in database management and SQL querying.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Lab Mannual Part 1 DBMS

The document outlines the curriculum for a Database Management System Lab course at Maharishi University of Information Technology, detailing various experiments including installing MySQL, creating Entity-Relationship Diagrams, and writing SQL statements. It provides step-by-step instructions for installing MySQL on Windows and guidelines for creating ER diagrams. The course aims to equip students with practical skills in database management and SQL querying.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 16

Maharishi University of Information Technology

Name of the faculty: Mr Dhananjay Kumar Yadav


Course : BCA
Semester: II Subject code: BCA
Session: 2024-25
Subject Name: Database Management System Lab

List of Experiment
1. Installing oracle/ MYSQL
2. Creating Entity-Relationship Diagram using case tools.
3. Writing SQL statements Using ORACLE /MYSQL:
a) Writing basic SQL SELECT statements.
b) Restricting and sorting data.
c)Displaying data from multiple tables.
d)Aggregating data using group function.
e) Manipulating data.
e) Creating and managing tables.
4. Write SQL queries using logical operators (=, <, >, etc.)
5. Write SQL queries using SQL operators (between..end, IN(List), Like, IS NULL and also
with negating expressions.
6. Write SQL query using character, number and date data types.
7. Write SQL queries using group by and having clause.
8. Write SQL queries for UNION, INTERSECT and MINUS.
9. Write SQL queries for extracting data from more than one table (EQUI JOIN, NON EQUI
JOIN, Outer Join).
10. Write SQL queries for sub queries, nested queries.
Maharishi University of Information Technology

Experiment No. 1

Objective: Installing oracle/ MYSQL

Step 1: Go to the official website of MySQL and download the community server edition software.
Here, you will see the option to choose the Operating System, such as Windows.

Step 2: Next, there are two options available to download the setup. Choose the version number for
the MySQL community server, which you want. If you have good internet connectivity, then choose
the mysql-installer-web-community. Otherwise, choose the other one.

Installing MySQL on Windows

Step 1: After downloading the setup, unzip it anywhere and double click the MSI installer .exe file. It
will give the following screen:

Step 2: In the next wizard, choose the Setup Type. There are several types available, and you need to
choose the appropriate option to install MySQL product and features. Here, we are going to select
the Full option and click on the Next button.
Maharishi University of Information Technology

This option will install the following things: MySQL Server, MySQL Shell, MySQL Router, MySQL
Workbench, MySQL Connectors, documentation, samples and examples, and many more.

Step 3: Once we click on the Next button, it may give information about some features that may fail
to install on your system due to a lack of requirements. We can resolve them by clicking on
the Execute button that will install all requirements automatically or can skip them. Now, click on the
Next button.

Step 4: In the next wizard, we will see a dialog box that asks for our confirmation of a few products
not getting installed. Here, we have to click on the Yes button.
Maharishi University of Information Technology

After clicking on the Yes button, we will see the list of the products which are going to be installed.
So, if we need all products, click on the Execute button.

Step 5: Once we click on the Execute button, it will download and install all the products. After
completing the installation, click on the Next button.
Maharishi University of Information Technology

Step 6: In the next wizard, we need to configure the MySQL Server and Router. Here, I am
not going to configure the Router because there is no need to use it with MySQL. We are
going to show you how to configure the server only. Now, click on the Next button.

Step 7: As soon as you will click on the Next button, you can see the screen below. Here, we
have to configure the MySQL Server. Now, choose the Standalone MySQL Server/Classic
MySQL Replication option and click on Next. Here, you can also choose the InnoDB Cluster
based on your needs.
Maharishi University of Information Technology

Step 8: In the next screen, the system will ask you to choose the Config Type and other connectivity
options. Here, we are going to select the Config Type as 'Development Machine' and Connectivity
as TCP/IP, and Port Number is 3306, then click on Next.

Step 9: Now, select the Authentication Method and click on Next. Here, I am going to select the first
option.
Maharishi University of Information Technology

Step 10: The next screen will ask you to mention the MySQL Root Password. After filling the
password details, click on the Next button.

Step 11: The next screen will ask you to configure the Windows Service to start the server. Keep the
default setup and click on the Next button.
Maharishi University of Information Technology

Step 12: In the next wizard, the system will ask you to apply the Server Configuration. If you agree
with this configuration, click on the Execute button.

Step 13: Once the configuration has completed, you will get the screen below. Now, click on
the Finish button to continue.
Maharishi University of Information Technology

Step 14: In the next screen, you can see that the Product Configuration is completed. Keep the default
setting and click on the Next-> Finish button to complete the MySQL package installation.

Step 15: In the next wizard, we can choose to configure the Router. So click on Next->Finish and
then click the Next button.
Maharishi University of Information Technology

Step 16: In the next wizard, we will see the Connect to Server option. Here, we have to mention the
root password, which we had set in the previous steps.

In this screen, it is also required to check about the connection is successful or not by clicking on the
Check button. If the connection is successful, click on the Execute button. Now, the configuration is
complete, click on Next.

Step 17: In the next wizard, select the applied configurations and click on the Execute button.
Maharishi University of Information Technology

Step 18: After completing the above step, we will get the following screen. Here, click on the Finish
button.

Step 19: Now, the MySQL installation is complete. Click on the Finish button.
Maharishi University of Information Technology

Verify MySQL installation

Once MySQL has been successfully installed, the base tables have been initialized, and the server has
been started, you can verify its working via some simple tests.
Maharishi University of Information Technology
Experiment No. 2

Objective: Creating Entity-Relationship Diagram using case tools.


Drawing entity relationship diagrams is easier if we choose to use online diagramming software.

There are a few basic steps to take to draw an ER diagram anywhere: in Gliffy, with Powerpoint, a
whiteboard, or even on the back of a napkin. Here’s the basic order to follow.

1. Determine the Entities in Your ERD

Start by identifying the “what”s in your system or architecture. Entities are represented with a
rectangle, and you’ll want to give them plenty of room so that you can add to your diagram in the next
steps.

2. Add Attributes to Each Entity


Maharishi University of Information Technology

Next, consider the attributes that you need to describe each entity. These are drawn and labeled inside
ovals. Connect these to the relevant entity and position your attributes to the outside of your diagram,
which leaves room for relationships.

3. Define the Relationships Between Entities


Maharishi University of Information Technology

Now, think through the relationships or verbs taking place within your system. The easiest way to do
this is to look at each entity and try to connect it to another by saying, “What does the ___ do with the
___.” The customer purchases the phone. The cell service maintains the phone. The cell service
creates a bill. The customer pays the bill.

4. Add Cardinality to Every Relationship in your ER Diagram


Maharishi University of Information Technology

The final step for this simple ER diagram is to define the amount of data that will come from each
entity. Cardinality is a simple notation that quickly tells your ERD reader whether there are zero, one,
many, or some combination of those factors between each entity. Your customer can purchase one or
many phones. The cell service maintains many phones. The customer pays one bill.

5. Finish and Save Your ERD

This is just a high-level ER diagram, but it provides enough detail that you should now have a
teammate or partner check your work — if you're working in Confluence, you can even invite them to
a real-time collaboration session. One of the best ways to check your work is to simply have them try
to read your diagram out loud. If they end up telling a different story than you intended, you need to
do some tweaking.

You might also like