database BS 5 Semester/Term PU — University of the Punjab 2019
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
ADP sociology 4 semester social statistics 1 past paper 2025
0 replies Reply → -
2025 ka past paper dy
0 replies Reply → -
ICT 1st sister paper
1 reply Reply → -
BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…
0 replies Reply → -
Civics course code GCCE101
1 reply Reply →
Paper text
UNIVERSITY OF THE PUNJAB
Fifth Semester - 2019
Examination: B.S. 4 Years Program
PAPER: Database Systems (CMP)
Course Code: IT-304 Part - II
Roll No.
....
MAX. TIME: 2 Hrs. 45 Min.
MAX. MARKS: 50
ATTEMPT THIS (SUBJECTIVE) ON THE SEPARATE ANSWER SHEET PROVIDED
Short Questions (Marks
20)
Q. 2 A. Briefly explain the following questions.
i.
Explain Group By Clause in SQL.
ii.
ili.
Define theta join with an example.
What is the use ofIN operator in SQL command?
iv.
What is concurrency and deadlock?
v. Define multivalued attribute with an example.
2*5=10
B- Write SQL queries for the given statements
i.Show the name and salary of all clerks having salary grade 1 and 2 or manager.
ii.Show the dept name, Grade and ename of all employees working in Newyork or Chicago
. iii.8 Show name of those employees working with king and getting less sal than king but hired before
iv.Show ename of all employees getting salary more than king but less than any employee of dept 20
and more than any employee of department
30.
v.Show name and salary of all employees working with KING and getting salary less than the king
Emp (empno,ename,sal, comm,hiredate, mgr, deptno)
Dept(deptno, dname,loc)
SalGrade (Grade, minsal, maxsal)
Tables for queries
Subjective Question (Marks
30)
Q. 3. Explain Three Tire ANSI-SPARC Architecture.
Q. 4. Explain ACID properties of transaction with example.
Q. 5. Define 2nd Normal Form. Remove Partial Dependency form given relation.
Where StdID and CourselD is Composite key.
10
10
10
StalD
StdName
CourselD
CourseName
CNIC
DOB
Grade
Skills