Assignment 1

Submission

Outline

Marking

We will be looking for (among other things)...see features.txt

Postgresql

You will be using postgresql for this assignment. Andrew Wang has this setup on a special database server for you. You can only reach this server from cs or cslinux. Postgresql database credentials: utorid/last 5 digits of barcode, excluding last two control digits. So for 21761012413912000 ... the password is 39120 ssh -Y [UTORID]@cslinux.utm.utoronto.ca psql -h mcsdb.utm.utoronto.ca -d [UTORID]_309 -U [UTORID] drop table appuser; create table appuser ( username varchar(20) primary key, password varchar(20), otherinfo varchar(20) ); \dt select * from appuser; insert into appuser (username, password, otherinfo) values('arnold', 'spiderman', 'something'); insert into appuser (username, password, otherinfo) values('jane', 'wonderwoman', 'another thing'); select * from appuser; select otherinfo from appuser where username='arnold'; select * from appuser where username='arnold' and password='zzzz'; select count(*) from appuser where username='arnold' and password='spiderman'; <ctrl-d> to quit

References

Questions and Answers