COMP3311 Week 10 Tuesday Lecture

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [0/18]
❖ Week 10 Tuesday

In today's lecture ...

Things to do ...

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [1/18]
❖ COMP3311 Course Aims

At the end of this course you should be able to:

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [2/18]
❖ Syllabus Overview

  1. Data modelling and database design
    • Entity-relationship (ER) design, relational data model
    • Relational theory: relational algebra, functional dependency, normalization
  2. Database application development
    • SQL for querying, data definition and modification   (PostgreSQL's version)
    • extending SQL:   Queries, Functions, Aggregates, Triggers
    • PostgreSQL,   psql (an SQL shell),   PLpgSQL (procedural SQL)
    • Python3,   Psycopg2,   accessing data programmatically
  3. DBMS technology
    • performance tuning,   catalogues, access control
    • DBMS architecture,   query processing, query optimization, EXPLAIN
    • transaction processing:   concurrency, serialization, locking
Things in gray will definitely not be examined.
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [3/18]
❖ Assessment Summary


Your final mark/grade will be determined as follows:

quizzes = mark for on-line quizzes     (out of 12)
ass1    = mark for assignment 1        (out of 13)
ass2    = mark for assignment 2        (out of 15)
exam    = mark for final exam          (out of 60)
okPrac  = examPrac >= 14/35
okExam  = okPrac && exam >= 24/60      (after scaling, if needed)
mark    = ass1 + ass2 + quizzes + exam
grade   = HD|DN|CR|PS  if mark >= 50 && okExam
        = FL           if mark <  50 && okExam
        = UF           if !okExam

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [4/18]
❖ Final Exam


Mon 24 August,   1:45-5:00pm,  3-hour exam,   afternoon session only

Get a good night's sleep,   Stay hydrated,   Arrive by 1:30pm

Exam environment:

Use of smart glasses and spy cameras results in serious misconduct charges.
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [5/18]
❖ Final Exam (cont)

Questions ...

What you have access to ... What you do not have access to
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [6/18]
❖ Final Exam (cont)

When you login (zID/zPass) into the exam environment ...

PostgreSQL server runs on your workstation

Database: will not be huge, will not be overly complex (e.g. < 15 tables)

You do not have access to  VLab or  /localstorage  or  /home/YOU

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [7/18]
❖ Final Exam (cont)

For the prac questions ...

For the theory questions ... General suggestions ...
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [8/18]
❖ Final Exam (cont)





Want to know what are the questions on the exam ... ?
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [9/18]
❖ Final Exam (cont)

Questions are as follows:

  1. an SQL query
  2. another SQL query
  3. a PLpgSQL function
  4. a Python3/Psycopg2 script
  5. another Python3/Psycopg2 script
  6. an analysis/synthesis question
  7. another analysis/synthesis question
  8. another analysis/synthesis question
  9. another analysis/synthesis question
Note that the database for Q1-5 will be available in advance.
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [10/18]
❖ Revision


Sources for revision material:

Some Help Sessions will be held in Week 11 and Week 12.
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [11/18]
❖ Supplementary Exams


Supplementary Exams are only available to people who

If you are awarded a Supp Exam ...
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [12/18]
❖ Assessment

Assessment is about determining how well you understand the syllabus.

If you can't demonstrate your understanding, you won't pass.

In particular, I don't pass people just because ...

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [13/18]
❖ Assessment (cont)


Of course, assessment isn't a "one-way street" ...

MyExperience evaluations are online NOW

Several evaluations: course, lecturer, tutor

Telling us good things is ok.

Telling us things to improve is very useful.

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [14/18]
❖ Beyond COMP3311

COMP9312 Data Analytics for Graphs

COMP9313 Big Data Management COMP9315 Database Systems Implementation COMP9319 Web Data Compression and Search COMP6714 Information Retrieval and Web Search
COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [15/18]
❖ The JAS Quiz


The JAS quiz from intro lecture:

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [16/18]
❖ Some Thoughts ...


You need to learn for life, not just the exam.

In particular, learn to find answers for yourself.

Typically, no single correct answer. (Solutions range from poor to excellent)

Take pride in your work. (Aim for quality, not just correctness)

VScode and autotest will generally not be available in the workplace

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [17/18]
❖ Finally ...

[Diagram:Pics/misc/thats-all-folks.jpg]

Good Luck with the Exams ... and Life ...

COMP3311 26T2 ♢ Week 10 Tuesday Lecture ♢ [18/18]


Produced: 5 Aug 2026