Course detail
Database Systems
FSI-RDBAcad. year: 2015/2016
The course provides an introduction to DBS. It deals with the following topics:
Data processing, redundancy, inconsistency, integrity, security, data sharing.
Index-sequential organisation. Relationship integrity constraints.
DBS architecture, data models. Entity-relationship model, relational algebra.
Theoretical fundamentals of information system design. Functional dependencies, normal forms, decomposition theorem.
Structured Query Language (SQL).
Web databases. HTML, PHP and MySQL.
Language of instruction
Number of ECTS credits
Mode of study
Guarantor
Learning outcomes of the course unit
Prerequisites
Co-requisites
Planned learning activities and teaching methods
Assesment methods and criteria linked to learning outcomes
Course curriculum
Work placements
Aims
Specification of controlled education, way of implementation and compensation for absences
Recommended optional programme components
Prerequisites and corequisites
Basic literature
Date, C.J.: An Introduction to Database Systems. Addison Wesley, New York, 2003 (8th edition).
Fortier, P.J.: Database Systems Handbook. McGraw-Hill, 1997.
Lacko, L.: SQL. Hotová řešení pro SQL Server, Oracle a MySQL. Computer Press, Brno, 2003.
Pokorný, J.: Konstrukce databázových systémů. Skriptum ČVUT FEL, Praha, 1999.
Pokorný, J.: Visual Basic pro aplikace Accessu 2000. Kopp, České Budějovice, 2000.
Pratt, J.P.: A Guide to SQL. Course Technology, 2003 (6th edition).
Ullman, L.: PHP and MySQL for Dynamic Web Sites. Pearson Education, 2003 (český překlad: PHP a MySQL: Názorný průvodce tvorbou dynamických www stránek. Computer Press, Brno, 2004).
Viescas, J.: Mistrovství v Microsoft Access 2000. Computer Press, Praha, 2000.
Williams, H.E. and Lane, D.: Web Database Applications with PHP and MySQL. O’Reilly, 2002 (český překlad: Programujeme webové aplikace pomocí PHP a MySQL. Computer Press, Praha, 2002).
Recommended reading
Viescas, J.L. : Mistrovství v Microsoft Access 2000, , 0
Classification of course in study plans
Type of course unit
Lecture
Teacher / Lecturer
Syllabus
2. Database systems, data definition language (DDL) and data manipulation language (DML). Database system architecture. Physical and logical independence. Data models. Integrity constraints for relationships.
3. Relational algebra, basic operations.
4. Relational algebra as a query language.
5. Design of data structures. Normal forms of relations.
6. Structured Query Language (SQL). Introduction to SQL SELECT.
7. SQL SELECT, examples. Aggregate functions. Multisegment aggregate key.
8. SQL. Subqueries. Multiple opening a table, relationship 1 to N within one table. Nested aggregations, query implementation using a sequence of queries.
9. SQL. Computing with NULL value. Existential and universal qualifier in SQL. Crosstab query. Update (action) queries. Definition queries.
10. Web databases. Communications among HTML, PHP and MySQL.
11. PHP. Data types, string functions, text and binary files, file locking.
12. Assignment statement, conditional statements, loop statements, user-defined functions, call by value and reference. Objects in PHP.
13 MySQL. User rights, data types, functions in MySQL, calling MySQL queries in PHP, password coding, realisation of complex database applications in criteria forms, insertion, updates and deletion of data.
Computer-assisted exercise
Teacher / Lecturer
Syllabus
1. HTML. References, tables, frames.
2. HTML. Pictures, forms, cascade styles.
3. Organisation of web application HTML-PHP-MySQL.
4. Installation of web environment using local disc – WampServer, console communication.
5. Table creation and definition of item properties (data types, primary key, null values, string sort).
6. Modification of table structure, insertion into table and its modification (update and delete operation).
7. PHP. User-defined functions.
8. PHP. File processing, e-mail sending.
9. PHP. Pictures in PHP, creation of .pdf files.
10. MySQL. Connection to MySQL in PHP, selection of database, specification of SQL statement from data sent from a form and execution of the SQL statement.
11. MySQL. Evaluation of SQL SELECT query and formatting of the results into table.
12. Realisation of web application (e-shop, information and reservation system, …)
12. Review and practice - SQL: subqueries, realisation of 'at least 1', 'none' and 'all' expressions.
13. Course-unit credit awarding.