DBMS LAB 04 - 21-CP-055
DBMS LAB 04 - 21-CP-055
DATBASE
MANAGEMENT SYSTEM
SQL Functions
(Aggregate & Scalar functions)
Lab Objective:
The aim of this lab is to understand the different functions used in the SQL.
TASKS
Muneer 06 OS Mr. Y
Hassan 10 DSP
TASK 1:
⮚ Calculate the number of records for the 3rd, 4th and 5th column.
⮚ Find distinct number of records for the Course Code=1002 as Total.
⮚ Find number of students registered for the course DIP as Total Courses.
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING
TASK 2:
Convert the text valued fields in the above table to the lower case and upper case alphabets.
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING
TASK 3:
Select maximum of the Reg No.
TASK 4:
Find the length of each record for the first column in the above table as MAXIMUM LENGTH.
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA
FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING
TASK 5: