Lab Report 3 Final
Lab Report 3 Final
Santosh, Tangail-1902
Lab Report 03
Course Title: Database Management System Lab
Course Code: ICT-2108
Lab Report on: Different Types of SELECT Operations in MySQL
Submitted By Submitted To
Objectives:
The main objective of this experiment is to use some basis query of MySQL. We will
learn how to show different attributes from database and also learn how arithmetic
expressions work in database.
Required Instruments :
1. MySQL 8.3 Command line Client.
For example, the query: Find ID, name, dept_name and salary with 10% bonus of all
instructors:
SQL expression: select ID, name, dept_name, salary *1.1 from
instructor;
Find the names of all instructors in the ICT department who have salary greater than 30,000:
SQL expression:
select name from instructor where dept_name=”ICT” and salary>30000;
Find the names of all instructors, along with their department names and department building
name.
SQL expression:
select name, instructor.dept_name, building from instructor,
department where instructor.dept_name=department.dept_name;
Discussion:
By the above selection query, we can easily find our desire output. We can also use
arithmetic expression to calculate something and display records as per our expectations.