DB1 Exam Info
DB1 Exam Info
Exam
Dear Students,
Here I would like to give you some important information about the exam.
Below is a list of all the exercise types that can occur in the exam.
In the exam you will get only 6 exercises.
1. Relational algebra
• You have to express a query in relational algebra for some sample data and you have to run the
query in relational algebra calculator (see Rel_alg_calculato.txt).
• You have to compute the result of some relational algebra expression in paper, like in
db1_exercise6.pdf (Exercise 3, Exercise 4)
• You have to convert a relational algebra expression into SELECT
2. SQL SELECT
• You have to write an SQL query and run it on some sample data.
• You have to convert a SELECT statement into relational algebra.
• You have to write an SQL DML statement (INSERT, DELETE, UPDATE) and run it on some
sample data.
• You have to write an SQL query using the WITH statement and run it on some sample data.
5. DATALOG
• You have to write a recursive query (WITH or CONNECT BY) and run it on some sample data.
• You have to write a recursive Datalog query (in paper).
• You will get an E-R model, and you have to convert it into relations, and you have to write the
appropriate CREATE TABLE statements with primary key and foreign key definitions.
8. PL/SQL
• You have to write a pl/sql program (function or procedure) and run it on some sample data.
9. Functional Dependencies
• Decompose a relation into relations which are in Boyce-Codd Normal Form. (like Exercise 3.3.1)
• Test if a decomposition is a Lossless Join decomposition -> Chase Test. (like Exercise 3.4.1)