COMP9315 22T1 Final Exam The University of New South Wales
COMP9315 DBMS Implementation
22T1 Final Exam
DBMS Implementation
[Instructions] [PostgreSQL] [C] [Q1-3 Info]
[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8]

Question 4 (6 marks)

Consider the SQL table definition:

create table Tab (
    id      integer,
    code    char(8),
    avg     real,
    primary key(id)
);

Assume that:

Calculate the following:

  1.   R = the size of each tuple (in bytes)

  2.   c = the number of tuples in each page

  3.   b = the total number of pages needed to store Tab tuples

State all assumptions. Show all working.

Instructions:

End of Question