hero-image

Teaching database courses at the Department of Computer Science

Database Systems II

Credit conditions

The first part of the semester is finished with a test on PL/SQL (probably in the 6th week). The second part includes a semestral project - an analysis and implementation of the data layer (ORM) of a part of an information system.

Test on PL/SQL

  • The rvvi database (description), see Database Systems I, Oracle version: rvvi2023_create.sql (last update: 14.2.2025). Records import:
    • Run rvvi2023_copy.sql in an SQL client (it copies records from tables on dbsys.cs.vsb.cz, processing time approx. 15s).
    • Download rvvi2023_insert.sql.zip, repack into a directory and run @<path to the file> in an SQL client, e.g. @g:\users\rvvi2023_insert.sql (processing time is approx. 1h). Checking the number of records: rvvi2023_rowcount.sql (2 253 244).

Tests on PL/SQL from previous years

  • See menu Archiv/Database Systems II

Other resources

Lectures and Exercises

WeekLectureExercise
1Introduction, SQL: Oracle vs SQL Server  
pdf (last update: 17.2.2025)
tasks, create/init sql script, solutions (last update: 17.2.2025)
2PL/SQL I: block, variables, exceptions                  
pdf (last update: 28.2.2024)
taskssolutions (last update: 27.2.2024)
3PL/SQL II - Procedures, functions, triggers         
pdf (last update: 6.3.2024)
tasks, update sql script, solutions (last update: 5.3.2024)
4

PL/SQL III - Programming constructs, cursors

pdf (last update: 13.3.2024)

taskssolutions (last update: 12.3.2024)
5PL/SQL IV - Dynamic SQL
pdf (last update: 20.3.2024) 
taskssolutions (last update: 19.3.2024)  
6.Object-relational data model
pdf (last update: 27.3.2024) 
PL/SQL, revision - tasks + solutions (last update: 4.4.2024)  
7.

Transactions and recovery  
pdf (last update: 3.4.2024)

 

PL/SQL test

 

8.T-SQL      
pdf (last update: 10.4.2024)
taskscreate-script, solution (last update: 5.4.2024)
9Concurrency Control I      
pdf (last update: 17.4.2024)
PL/SQL test, revision
10.

Functional analysis

pdf (last update: 24.4.2024)

Semestral Project: Form design and functional analysis
11

Concurrency Control II      
pdf (last update: 20.5.2024)

Study at home

 
12

Query processing in DBMS      
pdf (last update: 23.5.2024)

Study at home

Mini-specification of transaction

 

13

Object-relational Mapping

pdf

StoreIS_orm.zip (C# + ADO.NET + SQL Server, 15.5.2024)

Implementation of transaction