hero-image

Teaching database courses at the Department of Computer Science

Database Systems II

Credit conditions

Student has to pass one test from procedural languages PL/SQL. Minimimal number of points is 8 and maximal 15. At most two attempts of the test will be possible. Another part of the credit is a home project which is focused on a analysis and implementation of an information system under platform .NET or Java.

Real-time test

Real time test from PL/SQL will be in 6th week. Student can use any type of materials during the test (except the social networks and the communication with other people).

Project

Project should be defended in the last week. Student can implement the chosen project under platform .NET or Java.              
Requirements:

  • IS will have at least 7 tables and 5 non-trivial methods. At least 3 methods will be implemented as stored procedures.
  • At lest 3 of the implemented non-trivial methods will be as transactions. Non-trivial method is not CRUD command.
  • Cascade delete is not allowed as a non-trivial method.
  • The implementation has to follow the analysis.
  • The architecture has to contain layers. Data layer has to contain own Object-Relation Mapping (ORM)
  • Student can implement in ASP.NET or J2EE (in the case of web application) or .NET or Java (in the case of desktop application).
  • ORM will support also lazy evaluation and update only changed attributes.
  • ORM will support transaction (at least level of isolation SERIALIZABLE).
  • A part of ORM will be a test method utilizing all methods of ORM.
  • IS will support basic validation of input values.
  • Only two forms of the IS have to be implemented. The forms will be chosen by a teacher according to the analysis. The forms have support basic validation of input values.
  • The complete project has to contain documentation with analysis, SQL scripts and implementation.
  • Example analysis of the project here
  • Example ASP.NET project here

Evalution of the project:

  • Analysis: 15 points, min. 7 points (1. submission 15 points, 2. submission 15 points, 3. submission 11 points, 4. submission 7 points)
  • ORM: 8 points, min. 5 points (1. submission 8 points, 2. submission 5 points)
  • IS: 7 points, min. 4 points (1. submission 7 points, 2. submission 4 points)

Deadlines of the project:

  • Analysis:
    • 1. submission 6.3.2022 23:59 (4.week)
    • 2. submission 20.3.2022 23:59 (6.week)
    • 3. submission 3.4.2022 23:59 (8.week)
    • 4. submission 10.4.2022 23:59 (9.week)
  • ORM:
    • 1. submission 17.4.2022 23:59 (10.week)
    • 2. submission 1.5.2022 23:59 (12.week)
  • IS:
    • 1. submission 8.5.2022 23:59 (13.week)
    • 2. submission 15.5.2022 23:59 (14.week)

Lectures and Exercises

WeekLectureExercise
1Introduction to PL/SQL I - PL/SQL block, variables                
pdf (last update: 8.2.2022)

 

SQL Language --> Tasks and Examples                
tasks, create/init sql script, solutions (last update: 8.2.2022)             
 

2PL/SQL II - Procedures, functions, cursors        
pdf (last update: 15.2.2022)
PL/SQL Language -> Tasks and Examples        
taskssolutions (last update: 15.2.2022)
3PL/SQL III - Triggers, Dynamic SQL, Bind variables, Exceptions       
pdf (last update: 22.2.2022)
PL/SQL Language -> Tasks and Examples       
tasks, update sql script, solutions (last update: 22.2.2022) 
4PL/SQL IV - packages, bulkload operations, SQL injection, compound triggers      
pdf (last update: 1.3.2022)
PL/SQL Language -> Tasks and Examples      
taskssolutions (last update: 3.3.2022)      
 
5Functional Analysis    
pdf (last update: 8.3.2022)
PL/SQL Language -> Tasks and Examples      
taskssolutions (last update: 8.3.2022)  
6.Transactions, Recovery of DBMS     
pdf (last update: 14.3.2022)

Example tests from last year

Description: pdf (last change: 1.3.2021), script (last change: 1.3.2021).

Tests (last update: 10.03.2021)

7.T-SQL    
pdf (last update: 21.03.2022)

Real test

Description: pdf (last change: 8.3.2022), script (last change: 8.3.2022).

8.

Concurrency Control I    
pdf (last update: 28.03.2022)

 

Consultation of the project    
 

T-SQL Language -> Tasks and Examples    
taskscreate-script,solutions (last update: 28.3.2022)

9

Object Relational Mapping (ORM)

pdf (lecture, last update: 5.4.2022)

scripts.zip (create script, a generator of DTO, last update: 5.4.2022)

AuctionSystemORM_sqls (ORM, .NET,  SQL Server, last update: 5.4.2022)

 

Object Relational Mapping (ORM)

 

10.Object Relational Mapping (ORM)Object Relational Mapping (ORM)
11

ASP.NET, Integration of ORM:

Integration of ORM, GUI
12

Patterns of ORM Integration into User Interface Forms

  • pdf (lecture, last update: 19.4.2022)

Integration of ORM, GUI

 

13

Physical Database Design, Query Processing

pdf (lecture, last update: 26.4.2022)

Integration of ORM, GUI
14

 

Object-Relational Data Model 
pdf (last update: 4.5.2022)

Isolation levels of transactions: dais_cv9.pdfdais_cv9-scripts.zip