Rappels des concepts fondamentaux - smis inria
Rappels des concepts fondamentaux - smis inria
Rappels des concepts fondamentaux - smis inria
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Union, Intersection, Différence<br />
Exemple de plan d’exécution<br />
• Relation X Relation --> Relation (notées: ∪, ∩ , -)<br />
• OPERATIONS ENSEMBLISTES S'APPLIQUANT A DES<br />
RELATIONS DE MEME SCHEMA<br />
Select Patients.Nom, Patients.Prénom<br />
From Patients, Visites<br />
Where Patients.Id-P = Visites.Id-P<br />
π<br />
and<br />
Patients.Ville = ’Paris’<br />
and Visites.Date = ’15 juin’ σ<br />
π<br />
σ<br />
π<br />
π<br />
σ<br />
Patients<br />
Visites<br />
• EXTENSION: Union externe (OUTER UNION)<br />
−<br />
−<br />
s'applique à <strong>des</strong> relations de schémas différents<br />
on ramène les deux relations au même schéma en ajoutant <strong>des</strong> valeurs<br />
nulles<br />
Patients<br />
Visites<br />
Optimisation<br />
33<br />
34<br />
5. Le langage SQL<br />
Le langage SQL (Structured Query Language) comprend trois<br />
parties :<br />
1. Le langage de définition de données (Tables, Vues, Droits,<br />
Intégrité)<br />
2. Le langage de manipulation de données (Sélections,<br />
Modifications, Insertions, Suppressions)<br />
3. L'intégration aux langages de programmation<br />
35<br />
Le standard SQL<br />
SQL est dérivé de l'algèbre relationnelle et de SEQUEL (SystemR 74).<br />
Le standard SQL évolue en permanence :<br />
- SQL1 86 version minimale<br />
- SQL1 89 addendum (intégrité)<br />
- SQL2 92 version étendue à trois niveaux de conformité<br />
(entry, intermediate, full)<br />
- SQL2 95 addendum (CLI : Call Level Interface)<br />
- SQL2 96 addendum (PSM : Persistent Stored Modules)<br />
- SQL3 extension aux objets complexes<br />
- SQL 99 contient les bases de SQL3<br />
- SQL 2006 intégration de XML<br />
36