DB24S Assignment 1

You might also like

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

Department of IT & Computer Science

Pak-Austria Fachhochschule: Institute of Applied Sciences


and Technology, Haripur
Spring 2024
Course Title Database Systems Course Code COMP-231
Course Instructor Maria Gul Program BS(CS, & BIF), BS(SE)
Class
IInstInstructor/s: CS-S23 & B(BIF-F22), SE-F22 Semester
Name 3rd & 4th
Submission Date March 22, 2024 Maximum 25
Marks:

Instructions:
1. Only submissions on MS Teams are acceptable in PDF Format.
2. Five Marks will be deducted from late submission (1 Mark per day, max 5). More
than 7 days late submission will not be considered, and submission will be locked on
MS Teams.
3. For full marks, provide commented stepwise solutions to all the questions.
4. Rename the file as: Intake, Registration ID and Full Name (otherwise 3 Marks will
be deducted) e.g., SE22F_Inshira_Hassan_B22F0064SE112.pdf
5. In case of MS Teams problem, submit by email to:
maria.gul@adjunct.paf-iast.edu.pk

Q1: [5 Marks ]
Describe at least 3 tables that might be used to store information in a social-networking system
such as Facebook.

Q2: [5 Marks]
List at least two reasons why database systems support data manipulation using a declarative
query language such as SQL, instead of just providing a library of C or C++ functions to
carry out data manipulation.
Q3: [5 Marks]
Think of different users for the database shown in Figure 1. What types of applications would
each user need? To which user category would each belong, and what type of interface would
each need?
Q4: [10 Marks]
Given the file structure shown in Figure 2, answer the following problems.

a) How many records does the file contain? How many fields are there per record?
b) What problem would you encounter if you wanted to produce a listing by city? How
would you solve this problem by altering the file structure?

1
c) If you wanted to produce a listing of the file contents by last name, area code, city, state,
or zip code, how would you alter the file structure?
d) What data redundancies do you detect? How could those redundancies lead to
anomalies?

Figure 1: A Database that stores student and course information

2
Figure 2: File Structures for Q5

You might also like