Databases 2
Databases 2
This subject aims to deepen the concepts of Databases covered in the subject Databases TS1 and to
present the functions of a DBMS (Oracle) through the description of the SQL language, the use of a
procedural language with SQL (PL / SQL from Oracle) and the presentation of concepts: data security,
concurrency control and data storage.
Prerequisites
Databases of TS1.
Content
1st week
2.3. Integrity constraints for tables: Unique, Primary key, foreign key, Check.
4th semester
4.2. Basic language commands (Select, From, Where, Order by, …).
4.7.1. Equi-join.
4.7.2. Non-Equijoin.
4.8. Simple expressions and functions, arithmetic, strings, dates, … Building queries and applying them
7th semester
4.10. Group functions: MAX, MIN, SUM, COUNT, AVG. Building queries 9th semester
4.12. Subqueries:
4.13.1. UNION
4.13.2. INTERSECT
11th semester
5. Views.
6. Sequences.
6.1. Creation
6.2. Modification
6.3. Deletion
6.4. Using sequences with DML. Creation and use of sequences 15th week
1. Objectives.
3. User, Password.
4. Role.
5. Grant and Revoke.
- Objectives
- If syntax (if, then, else, elseif) Creating blocks (if) 17th week
- Syntax of the different types of Loop Creating blocks (loop) 18th week
- Searching for data using PL/SQL Creating functions and procedures 19th week
2. Cursors
- Definition of a cursor
- Types of cursors
20th week
Teaching methods
The practical work sessions must begin with a reminder of SQL from TS1 and must then follow the course
and the guided exercises.
Bibliographic references
- Fundamentals of Database Systems / Ramez ELMASRI / 3d Edition, Addison & Wesley, 2000.
- Les bases de données, objet & relationnel / Georges GARDARIN / Deuxième tirage, Eyrolles, 2000.
- An Introduction to Database Systems / C. J. DATE / 7th Edition, Addison & Wesley, 1999.