0% found this document useful (0 votes)
65 views3 pages

Dbms Lab: Using Aggregate Functions

This document summarizes a DBMS lab focusing on aggregate functions. The objectives are to learn how to handle dates, use time and years from dates, and convert dates to strings. The lab uses SQL+ and involves creating users like teachers, a student advisor, and students, as well as roles like faculty, student, and advisor.

Uploaded by

Burhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views3 pages

Dbms Lab: Using Aggregate Functions

This document summarizes a DBMS lab focusing on aggregate functions. The objectives are to learn how to handle dates, use time and years from dates, and convert dates to strings. The lab uses SQL+ and involves creating users like teachers, a student advisor, and students, as well as roles like faculty, student, and advisor.

Uploaded by

Burhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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