You are on page 1of 17

MIDLANDS STATE UNIVERSITY

LAB REPORT
R1912156X
PROFESSOR DUBE

Course Code: HCSE 212

Course Title: DATABASE DESIGN AND DEVELOPMENT

Exercise Exercise Title Date


No.
1. Install MySQL 17.03.2021

2. CREATE DATABASE(for Assignment2 ER diagram) 17.03.2021

3. CREATE TABLES 22.03.2021

4. INSERT 22.03.2021

5. UPDATE 22.03.2021

6. RETRIEVE 22.03.2021

7. DELETE 22.03.2021

8. INSERT MULTIPLE RECORDS 19.04.2021

9. INSERT AN ADDITIONAL COLUNM 19.04.2021

10. RETRIEVE INFORMATION FROM TABLE WHERE 19.04.2021


CONDITION IS MADE
11. JOIN 2 COLUNMS 19.04.2021

12. TO SELECT DISTINCT NAMES 19.04.2021

13. ADD A USER AND GRANT PRIVILEDGES 19.04.2021

14. 19.04.2021

15. 19.04.2021
Ex1 Practical: Install MySQL Date of the Practical: 17.03.2021

Objective (Aim) of the Experiment: MySQL installation

Software and Hardware Requirements

Exercise 1 Requirement
1 PC
2 Operating System(Windows XP and above, Linux, Mac e.t.c).
3 MySQL https://dev.mysql.com/downloads

MySQL(Include brief description and diagram/ flow chart or important point’s e.g.)
 MySQL
o Is an Oracle-backed open source relational database management system
(RDBMS) based on Structured Query Language (SQL). MySQL runs on virtually
all platforms, including Linux, UNIX and Windows. ... MySQL is an important
component of an open source enterprise stack called LAMP.
 MySQL Workbench
o Provides a visual console to easily administer MySQL environments and gain
better visibility into databases. Developers and DBAs can use the visual tools for
configuring servers, administering users, performing backup and recovery,
inspecting audit data, and viewing database health.
 MySQL Shell
o Is an interactive Javascript, Python, or SQL interface supporting development and
administration for the MySQL Server and is a component of the MySQL Server.
You can use the MySQL Shell to perform data queries and updates as well as
various administration operations.
Input (Type Code/command if any example is shown below)
 Show databases;
Output (Put Screen shot NB crop screen shot so that the commands are visible)
MySQL Command line
Ex2 Practical: CREATE COMMAND Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: To create a database for hotel booking

Software and Hardware Requirements


Exercise 2 Facilities Required
1 Operating System(Windows XP and above, Linux, MAC e.t.c).
2 MySQL

CREATE COMMAND (Brief description and diagram/ flow chart or important points)
CREATE DATABASE is the SQL command used for creating a database in MySQL.
Input
Type command below
CREATE COMMAND: Is the SQL command used for creating a database in MySQL.

Create database Midlands Hotel;


Show databases;
Output (Screen shot)

Ex3 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MYSQL to create tables for hotel booking
Software and Hardware Requirements
Exercise 3 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL
Output (Screen shot)

Ex4 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MYSQL for inserting values into tables in the
database
Software and Hardware Requirements
Exercise 4 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex5 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MYSQL for Updating values in tables for the
database
Software and Hardware Requirements
Exercise 5 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex6 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MYSQL for retrieving values from a database

using the SELECT COMMAND

Software and Hardware Requirements


Exercise 6 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL
Output (Screen shot)

Ex7 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MYSQL for removing values from tables in a

database

Software and Hardware Requirements


Exercise 7 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex8 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MySQL to insert multiple records in database table

Software and Hardware Requirements


Exercise 8 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex9 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MySQL to make changes from an existing record in the
database table

Software and Hardware Requirements


Exercise 9 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex10 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MySQL to insert an additional column in the database
table

Software and Hardware Requirements


Exercise 10 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex11 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MySQL to retrieve information from a table where
condition is made

Software and Hardware Requirements


Exercise 11 Facilities Required
1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Input

Output (Screen shot)


Ex12 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MySQL to concat or join 2 colunms in the database table

Software and Hardware Requirements

Exercise 12 Facilities Required


1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)


Ex113 Practical: Date of the Practical: 17-03-21

Objective (Aim) of the Experiment: Using MySQL to select distinct names from a database table

Software and Hardware Requirements

Exercise 13 Facilities Required


1 Operating System(Windows XP and above,
Linux, MAC e.t.c).
2 MySQL

Output (Screen shot)

You might also like