Database System BS 4 Semester/Term UOG — University of Gujrat 2023
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-
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 → -
BS 4the semester2025 civics and community engagement past paper According UOs
0 replies Reply → -
Bs public administration 1st semester mid term past papers
0 replies Reply → -
BS English from uni of Sargodha Functional English, history of old English literature, literary devices and genres,
0 replies Reply →
Paper text
UNIVERSITY OF GUJRAT
Final-Term Exam Spring 2023
Course Code: CS-241
Course Title: Database System
Semester: 4th (CS-21)
Time allowed: 2.5 hours
Maximum Marks: 50
Roll No: 22827119-002
Q1: Write scope, functional and non-functional requirements of your project. 10
Q2: Write the characteristics of big data with example of each characteristic. 10
Q3: Define different types of integrity constraints in detail. Also design two tables and explain
How they will make relationship and will use which integrity constraint and why? 10
Q4: Perform the operations given below, on an initially empty hash table of size 13 using open hashing
with c(i) = i and the hash function: h(key) = mid square method.
insert(128), insert(216), insert(325), insert(129), insert(135), find(128), find(408), insert(614),
insert(427), insert(325). Find maximum length, minimum length and average length. 10
Q5: Write the following queries on Account and Customer table. 10
AccountNo AccountType AccountBalance CustomerID
10021989 Saving 1350000 1005
10011990 Current 8305500 1005
10021340 Saving 150000 1008
10011870 Current 32019 1009
10021770 Saving 12902 1006
CustomerID CustomerName Address MobileNumber
1005 Daud Lahore 03419892123
1006 Rania Lahore 03229089764
1007 Waleed Islamabad 03398199912
1008 Danyal Karachi 03058977712
1009 Kamal Islamabad 03571232111
1. Find all records of Account tables with AccountBalance less than 100,000
2. Select AccountNo, AccountBalance, CustomerName from Account and Customer table Where CustomerID
are equal in Account and Customer table.
3. Update AccountBalance to 98560000 where AccountType is Current.
4. Delete Customer record from Customer table whose CustomerID is 1007.
5. Insert new Customer record in Customer Table and give that new record CustomerID 1010.