1. Homepage
  2. Exam
  3. [2022] COMP9315 DBMS Implementation 22T1 - Final Exam - Q4 Tuple Calculation

[2022] COMP9315 DBMS Implementation 22T1 - Final Exam - Q4 Tuple Calculation

This question has been solved
Engage in a Conversation

Question 4 (6 marks)

Consider the SQL table definition: CourseNana.COM

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

Assume that: CourseNana.COM

  • integer values are 4 bytes long
  • real values are 8 bytes long
  • char(X) values occupy X bytes
  • each tuple has a 4-byte header before the data
  • pages are are B = 4KB in size
  • each page has a 96-byte header; the rest of the page holds tuples
  • there are r = 10000 tuples in the Tab table

CourseNana.COM

Calculate the following: CourseNana.COM

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

  2.   c = the number of tuples in each page  CourseNana.COM

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

State all assumptions. Show all working. CourseNana.COM

Instructions: CourseNana.COM

  • Type your answer to this question into the file called q4.txt
  • Submit via:   give cs9315 exam_q4 q4.txt 
    or via: Webcms3 > exams > Final Exam > Q4 submission > Make Submission
End of Question

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
COMP9315代写,Database Implementation代写, The University of New South Wales.代写,SQL代写,COMP9315代编,Database Implementation代编, The University of New South Wales.代编,SQL代编,COMP9315代考,Database Implementation代考, The University of New South Wales.代考,SQL代考,COMP9315help,Database Implementationhelp, The University of New South Wales.help,SQLhelp,COMP9315作业代写,Database Implementation作业代写, The University of New South Wales.作业代写,SQL作业代写,COMP9315编程代写,Database Implementation编程代写, The University of New South Wales.编程代写,SQL编程代写,COMP9315programming help,Database Implementationprogramming help, The University of New South Wales.programming help,SQLprogramming help,COMP9315assignment help,Database Implementationassignment help, The University of New South Wales.assignment help,SQLassignment help,COMP9315solution,Database Implementationsolution, The University of New South Wales.solution,SQLsolution,