Professional Documents
Culture Documents
Daniyal Gul DB Lab 01
Daniyal Gul DB Lab 01
Registration #
engineering-22)
Environment Setup :
1. Install XAMPP :
1
Pak-Austria Fachhochschule
Institude of Applied sciences And Technology
2
Pak-Austria Fachhochschule
Institude of Applied sciences And Technology
2. Start XAMPP:
3. Access MySQL :
3
Pak-Austria Fachhochschule
Institude of Applied sciences And Technology
b. Open MySQL Workbench and create a new connection with your MySQL
serverdetails.
5. Establish Connection :
6. Test Environment :
MySQL code :
4
Pak-Austria Fachhochschule
Institude of Applied sciences And Technology
Queries :
To show tables :
5
Pak-Austria Fachhochschule
Institude of Applied sciences And Technology
Add two numbers :
select 2+4;
select current_date(),current_time();
Overview :
In this lab, we familiarized ourselves with SQL queries to interact with databases. We learned
howto display the current date, calculate sums of values in columns, and retrieve specific data
from tables based on conditions. These fundamental skills are essential for managing and
querying databases effectively.