Hi all,
Prac 04 and Prac 05 videos are out:
https://www.youtube.com/watch?v=8F-gkSwiYbE&list=PLRalM05yyRqUQu81nFdV2JY4sfqa-gkfm&index=2
https://www.youtube.com/watch?v=VDUheECb_xU&list=PLRalM05yyRqUQu81nFdV2JY4sfqa-gkfm&index=1
Hope these help you.
3311 Team
Hi everyone,
Please note that Week 4 Monday and Thursday demonstration scripts are located in:
/import/adams/A/cs3311/web/26T1/lectures/week04-monday/sql/
/import/adams/A/cs3311/web/26T1/lectures/week04-thursday/sql/
We got some interesting questions from lectures this week:
1. Why RETURN NEW in an AFTER trigger?
Even though an AFTER INSERT trigger cannot modify the row being inserted (because the operation is already complete), PostgreSQL still requires a RETURN statement.
2. Dropping overloaded functions
If you have multiple functions named seq() with different signatures (parameters), PostgreSQL treats each as a unique entity.
3. Why our user defined mycount(*) fail.
Consider the following user defined aggregate:
create or replace function mycount_trans(state integer, val anyelement)
returns integer
as $$
begin
return state + 1;
end;
$$ language plpgsql;
create aggregate mycount(anyelement) (
sfunc = mycount_trans,
stype = integer,
initcond = '0'
);
You will notice that the following code works:
SELECT bar, mycount(bar) FROM sells GROUP BY bar;
However, the following code does not work.
SELECT bar, mycount(*) FROM sells GROUP BY bar;
This is because, the * symbol is a special token that represents "all columns of the table. The built-in count(*) is a hardcoded exception in the database engine that knows how to count rows without needing a specific column. Our user defined aggregate my count did not implement this exception.
Have a good weekend! Let's have more discussions like this in class.
COMP3311 Team
The autotest for Assignment 1 has been released. You can use the following command to test your work:
3311 autotest ass1
Reminder that help sessions for Assignment 1 are available in Weeks 4 and 5, with the first one being tomorrow. Please check the times and locations for these sessions in the "Help Sessions" section on the WebCMS sidebar.
Week 4 Thursday Edit: Help session room change to Mathews 226.
Week 4 Tuesday Edit: To access the Level 3 Matthews rooms, you will have to use the lifts as the stairs won't work. A lift is located around here with the red circle.
Assignment 1 is now available on WebCMS: https://cgi.cse.unsw.edu.au/~cs3311/26T1/assignments/ass1/index.html
The due date is 9PM Friday Week05. (20 March 2025)
3311 Team
Hi all,
Prac 03 video has been made and relased:
https://www.youtube.com/watch?v=pKa52Qxcwzk
Jerry
Hi all,
You may use the following command to copy the demonstrated SQL files to your current directory within VXDB02.
Week 3 monday:
cp /import/adams/A/cs3311/web/26T1/lectures/week03-monday/sql/*.sql .
Week 3 Thursday:
cp /import/adams/A/cs3311/web/26T1/lectures/week03-thursday/sql/*.sql .
Best,
Jerry
Hi everyone,
We are offering another chance to take Quiz 1 for those who missed it. This is a different quiz. We understand students might miss it because they could not have access to course materials in the early stage.
https://webcms3.cse.unsw.edu.au/COMP3311/26T1/activities/quizzes/2464
(If you took old quiz one and still want to take this, no problem. We will take maximum mark of the two.)
For the remaining quizes, please remember to take them. They are due at Friday midnight,
Best,
Jerry
Hi everyone,
Due to a tech issue, our lecture recording of week 2 thursday is without audio. I have contacted tech support to address this issue ASAP.
For students in online strean, I have made a new video in replacement :
https://www.youtube.com/watch?v=TFBamAUDJJI
The SQL files in the demonstration can be found in: /import/adams/A/cs3311/web/26T1/lectures/week02-thursday/sql/
best,
Jerry
Hi everyone,
I made a video about prac 02:
https://www.youtube.com/watch?v=0T-_85yLIV4&list=PLRalM05yyRqUQu81nFdV2JY4sfqa-gkfm
Best,
Jerry
Hi Everyone,
The recording for the Week 1 Thursday lecture is now available on both Echo360 and Youtube .
Action Required: Activate Echo360 for Week 02 Live Streams
The University Tech team has finalized the setup for our Live Lectures starting next week. To ensure you have access, please "activate" your account by clicking the Echo360 link via one of our official platforms:
You should be able to see a list of 17 arranged lectures, two of which are already completed.
Accessing the platform through these links confirms your UNSW identity and marks you as "Activated" on my end. Please do this before next week to avoid login issues during the live stream.
Have a great weekend!
Best,
Jerry
Hi everyone,
To better assist you with the vxdb02 environment, I made a video about prac01:
https://www.youtube.com/watch?v=mMsvWMlgoCQ
Best,
Jerry
Hi Everyone,
Welcome to the Term 1 offering of COMP3311 in 2026.
I am Jerry, the lecturer of this term.
Our Course Webpage is avalible in WebCMS3:
https://webcms3.cse.unsw.edu.au/COMP3311/26T1/
Here you will find links to all the course material.
Moodle will only be used to access Online Help Sessions (starting week 4) and lecture recordings in Echo360.
Our first lecture is
today
(Monday) from 1PM to 3PM in Physics Theatre (K14).
https://www.learningenvironments.unsw.edu.au/physical-spaces/k-k14/k-k14-19
The recording will be avalible in Echo afterweards.
From week02 onward lectures will be viewable live in echo360, but this takes time for IT to setup so will not be avalible for the first lecture.
We also have lectures on Thursdays from 2PM to 4PM in Physics Theatre (K14).
Students in the online lecture stream are welcome to attend in-person lectures if there is room in the theatre which there usually is after week 1
COMP3311 runs 1.5 hour Tutorals starting week02 (
NOT THIS WEEK
).
We have a fantasic team of tutors who will be teaching tutorials this term.
We have 4 online tutorials this ter, which will be recorded.
COMP3311 will be using DIscourse as our course forum, infomation on how to access Discourse is avalible on the course website:
https://webcms3.cse.unsw.edu.au/COMP3311/26T1/resources/116933
If you have a personal or private issue, please email the course email alias <cs3311@cse.unsw.edu.au>.
Looking forward to seeing you guys today!
Jerry
COMP3311 Lecturer