Dbms Lab: Using Aggregate Functions

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

DBMS LAB

LAB 7
Using Aggregate Functions

Name : Burhan Ahmed Satti


Enrollment No. : 01-134172-065
Class : BSCS 4-A
Subject : DBMS Lab
Lab Assistant : Ramsha Baig

Objectives
•Learn how to handle date
•Learn the use of time
•Learn the use of years from dates
•Learn to use rr year type
•Learn to use to char on dates

Tools Used
•SQL+
BSCS 4-A Burhan Ahmed Satti 01-134172-065

Task No. 7.1


Create different Users (3 Teachers, 1 Student Advisor and 6 Students)
Solution
create user studentadvisor identified by teacher;
create user studentadvisor identified by teacher;
create user studentuser identified by teacher;
Result

Conclusion
Users are created.

DBMS Lab Page 2 of 3


BSCS 4-A Burhan Ahmed Satti 01-134172-065

Task No. 7.2


Create role Faculty , Student, Student Advisor.
Solution
create role faculty;
create role student;
create role advisor;
Result

Conclusion
Roles are created.

DBMS Lab Page 3 of 3

You might also like