1. Discussion of the fundamental principles on which relational databases are based
Relational databases rely on a precise model of data organization and links between records. The section explains relations, tables, rows, columns and tuples, then connects these concepts with primary keys, foreign keys and the relationships that bind tables together.
- relations,
- table,
- row,
- column,
- tuple,
- primary and foreign key and relationships between tables.
2. Understanding the key role of the SQL language
SELECT statements form the core of practical SQL work with relational data. This part covers filtering with WHERE, sorting with ORDER BY, limiting rows with TOP, grouping with HAVING, joins, subqueries, functions, operators and set-based methods of combining result sets.
- selection statements using the SELECT keyword,
- selecting specific rows using the WHERE clause,
- sorting data – ORDER BY,
- selecting the first n rows (TOP),
- functions and operators,
- grouping data using the HAVING statement,
- joining tables,
- subqueries,
- combining data using the apparatus of set theory.
3. Overview of the objectives of creating views in relational databases
Views address the need to present data in a controlled and reusable form without duplicating underlying tables. This section explains why views are created in relational databases and how they help organize access to selected data structures and query logic.
4. Discussion of the relational database design process
Before implementation begins, a database must be designed in a structured way. The section follows the design process, introduces schema notation methods and discusses patterns that help translate business requirements into coherent relational models.
- database design process,
- schema notations,
- patterns.
5. Presentation of the most important concepts of relational databases
At the organizational level, database development starts with sound relational concepts. This section outlines the process of creating a database and compares normalization with denormalization, emphasizing the advantages and trade-offs each approach introduces into data modeling.
- the process of creating a database,
- normalization – advantages and disadvantages,
- denormalization – advantages and disadvantages.
6. Detailed description of the process of creating tables in databases
Creating tables requires decisions about structure, identity and integrity. The section covers CREATE and DROP operations, auto-numbering of rows, data type selection, table joins and integrity constraints, linking physical table definition with the rules governing stored data.
- creating (CREATE) and deleting (DROP) tables,
- auto-numbering of rows,
- types of data types,
- joining tables,
- constraints (integrity constraints).
7. Practical approach to operations on data
Day-to-day database work depends on correct handling of data modification statements. This part concentrates on INSERT, UPDATE and DELETE, showing how records are added, changed and removed, and how these operations affect the contents of relational tables.
- inserting data – INSERT,
- updating data – UPDATE,
- deleting data – DELETE.
8. Discussion of methods for creating SQL queries
Building queries often involves more than a single SELECT statement. The section brings together subqueries, dynamic SQL and cursors, while also addressing SQL Injection prevention so that flexible query construction is balanced with secure implementation practices.
- subqueries,
- dynamic SQL and prevention of SQL Injection,
- cursors.
9. Introduction to working with variables in the SQL language
Working with variables allows SQL code to store intermediate values and build more controlled processing steps. This section explains scalar and table variables, showing how each kind supports calculations, temporary storage and the organization of logic inside scripts.
10. Detailed overview of various types of data available in relational databases
Choosing the right data type influences storage, validation and later query behavior. Here the focus is on numeric, text, date and time types, XML and selected specialized types such as hierarchyid or cursor, with attention to their practical role in relational databases.
- numeric,
- text,
- date and time,
- XML,
- other (e.g. hierarchyid, cursor).
11. Discussion of control statements in SQL
Conditional and iterative logic makes it possible to control the flow of execution inside SQL scripts. The section covers the IF statement and loop constructs, showing how they are used to branch logic, repeat operations and manage procedural behavior in database code.
- conditional statement IF,
- loops.
12. Overview of the principles of creating and managing tables in relational databases
Managing table scope affects how data structures are used across sessions and processes. This section focuses on the rules for working with temporary and global tables, including when each approach is appropriate and how their lifecycle differs in relational database systems.
13. Description of stored procedures in SQL
Stored procedures serve to encapsulate database operations in executable program units. The section explains their role in organizing SQL logic, structuring repeated operations and separating implementation details from direct query execution in relational database environments.
14. Discussion of functions in SQL
SQL functions are covered from the perspective of building expressive queries and reusable logic. Participants work with scalar functions for date, time, text, logic and conversion, then move to tabular and user-defined functions, as well as grouping and ordering operations on result sets.
- scalar:
- date and time,
- logical,
- text,
- conversion,
- tabular,
- grouping data,
- ordering data,
- user-defined.
15. Presentation of transactions as a mechanism ensuring data consistency in databases
Maintaining data consistency requires a clear understanding of transaction behavior. This part explains the theoretical basis of transactions, then moves to implementation examples and error handling patterns that determine when changes should be committed or rolled back.
- theoretical foundations,
- implementation examples,
- error handling.
16. Description of triggers in SQL
Triggers in SQL are presented as mechanisms that react automatically to changes in database objects or data. The section distinguishes DML and DDL triggers, showing when each type is executed and how they support control over operations performed in the database environment.