DM505, Spring 2006, 4th Quarter - Weekly Note 4
In this course, we will be using PostgreSQL as DBMS. To use the PostgreSQL system at IMADA, you need to have an IMADA account (to log into IMADA machines) as well as a (separate) username and password for the PostgreSQL system. Participants with an existing IMADA account will receive an email containing a username and a password for the PostgreSQL system (at their student email address).
Participants without an existing IMADA account should first acquire one by contacting Anders Fredslund. The lecturer should be contacted afterwards, for creation of PostgreSQL user name and password.
The following note on using PostgreSQL at IMADA
explains how to use the PostgreSQL system at IMADA (remote use through
Lecture April 26More on relational algebra. Start on SQL.
ReadingRamakrishnan and Gehrke: Section 4.2, Sections 5.1-4.
Lecture May 1 (Expected contents)More on SQL: aggregations, NULL values, outer joins, general constraints, triggers, views. Use of the PostgreSQL system at IMADA. Start on functional dependencies and normal forms.
ReadingRamakrishnan and Gehrke: Sections 5.5-9, 3.6, and 19.1-3. Note on using PostgreSQL at IMADA.
Lecture May 4 (Expected contents)More on functional dependencies and normal forms. Database application programming using JDBC. Stored procedures.
ReadingRamakrishnan and Gehrke: Sections 19.4-7, 6.3, and 6.5. Note on using JDBC with PostgreSQL at IMADA.
Exercises May 3From last weekly note: exercises 4.3 (only the relational algebra versions of the queries) and 4.4 in Ramakrishnan and Gehrke. Discussion of project, stage 2 (if needed). Exercises 3.8, 3.10, 3.19 (only question 1), and 5.1 in Ramakrishnan and Gehrke. Note: Table definitions and example data for all tables used in exercises in Chapter 5 can be found at the website of the textbook. I have prepared a version with PostgreSQL syntax (and a few errors removed as well).
The file
The details of the The data for these exercises cannot be added in arbitrary order, due to the foreign key constraints appearing in the table definitions (try it out and see for yourself).
Maintained by Rolf Fagerberg (rolf@imada.sdu.dk) | |