0% found this document useful (0 votes)
18 views6 pages

Databases 2

Uploaded by

nadinehamzeh1987
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Databases 2

Uploaded by

nadinehamzeh1987
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

DATABASES

80 HOURS (40 COURSES + 40 TP)

Description of the subject

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.

Objectives of the subject

The objective of this subject is to introduce students to mastering:

- The SQL language with its different aspects.

- The use of the procedural language PL / SQL.

- The main functions of a DBMS …

Prerequisites

Databases of TS1.

Skills and abilities (Learning outcomes)

At the end of this subject, the student will be able to:

- Master the functions of a DBMS

- Master the SQL language

- Use a procedural language with SQL

Content

4 periods per week

Chapters <Supervised exercises> No week

Chapter 1: Introduction to the Oracle database. (2 h)

1. Concepts for starting an Oracle database.

2. Text editor, SQL*Plus.


Chapter 2: The SQL language

1. Creating a database: Interactive tools for defining and creating a database.

1st week

2. The data definition language (DDL).

2.1. Data types.

2.2. Creating, modifying and deleting tables).

2.3. Integrity constraints for tables: Unique, Primary key, foreign key, Check.

2.4. Create, delete, activate and deactivate a constraint.

Using the DDL: creating, modifying and deleting tables

Manipulating constraints 2nd semester

2.5. Creating a new table with records from another table.

2.6. Index of a table:

2.6.1. Types: automatic and manual

2.6.2. Creation and deletion. Manipulating indexes 3rd semester

3. The Data Modification Language (DML)

3.1. Adding, modifying and deleting data.

3.2. Using Select in the DML.

3.3. Transactional processing: Commit, Rollback, Savepoint.

3.4. Comparison between: Delete, Drop, Truncate. Using DML commands.

4th semester

4. The Data Query Language (DML)

4.1. The syntax of Queries

4.2. Basic language commands (Select, From, Where, Order by, …).

4.3. Selecting data from a table.

4.4. Sorting query results.

4.5. Simple queries.


Building queries and applying them to existing tables 5th semester

4.6. The Cartesian product

4.7. Joins: using multiple tables.

4.7.1. Equi-join.

4.7.2. Non-Equijoin.

4.7.3. Joining a table to itself.

4.7.4. Outer join.

Building queries and applying them to existing tables 6th semester

4.8. Simple expressions and functions, arithmetic, strings, dates, … Building queries and applying them
7th semester

4.9. Conversion functions

Building queries and applying them 8th semester

4.10. Group functions: MAX, MIN, SUM, COUNT, AVG. Building queries 9th semester

4.11. Subqueries and set operators

4.12. Subqueries:

4.12.1. Subqueries returning a single value

4.12.2. Subqueries returning multiple rows

4.12.3. Subqueries returning multiple columns


4.12.4. Subqueries returning at least one row

4.12.5. Multiple subqueries. Building nested queries 10th semester

4.13. Set operators:

4.13.1. UNION

4.13.2. INTERSECT

4.13.3. MINUS Building queries and application

11th semester

4.14. External variables: with or without Accept

4.14.1. Creation and use Using external variables 12th week

5. Views.

5.1. Definition of a view.

5.2. Advantages of views.

5.3. Types of views and characteristics: simple and complex

5.4. Creation of views (Create – Replace).

Creation and Use of views 13th week

5.5. Searching for data from views.

5.6. Modifying data by views.

5.7. Deleting views. Using views 14th week

6. Sequences.

6.1. Creation

6.2. Modification

6.3. Deletion

6.4. Using sequences with DML. Creation and use of sequences 15th week

Chapter 3: Data security

1. Objectives.

2. Types: System privileges and Object privileges.

3. User, Password.

4. Role.
5. Grant and Revoke.

Creating and managing users and roles. 16th week

Chapter 4: The PL/SQL language (14 h)

1. The essentials of PL/SQL

- Objectives

- Declaring data types: variables, constants, etc.

- PL/SQL Block syntax

- If syntax (if, then, else, elseif) Creating blocks (if) 17th week

- Syntax of the different types of Loop Creating blocks (loop) 18th week

- Subprograms (procedures and functions)

- Using stored procedures

- Searching for data using PL/SQL Creating functions and procedures 19th week

2. Cursors

- Definition of a cursor

- Types of cursors

- Use of implicit cursors

- Cursors with parameters

- Extracting data lines using cursors

- Updating and deleting lines with cursors

Creating and manipulating cursors

20th week

Teaching methods

Lectures enriched by examples and practical work.


Assessment methods

Written tests and exams.

Practical work (60 hours)

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.

- Database Management Systems / Raghu RAMAKRISHMAN / 2d Edition, Mc Graw-Hill, 1999.

- The Essence of Databases / F. D. ROLLAND / Prentice Hall, 1998.

- Database Management Systems / Gerald POST / Mc Graw-Hill, 1998.

- An Introduction to Database Systems / C. J. DATE / 7th Edition, Addison & Wesley, 1999.

- Oracle8i la référence / Kevin Loney / George Koch / Campus Press 02/2001

You might also like