Ennobros


Télécharger au format pdf

02

TD

a) \[\Pi_{\text{NuJoueur},\text{LieuTournoi}}\left( \sigma_{\text{Sponsor} = \text{"Peugeot" } \land \text{ Annee } \geq 1990 \land \text{ Annee } \leq 1994}\left( \text{Gain} \right) \right)\] b) \[\Pi_{\text{ Nom},\text{ AnNaiss }}\left( \sigma_{\text{Annee} = 1994}\left( \text{Gain} \right)\Join\text{ Joueur} \right)\] c)
Joueurs ayant joué à Winbledon en 92: \[\ t1\ = \Pi_{\text{NuJoueur }}\left( \sigma_{\text{LieuTournoi} = \text{Wimbledon } \land \text{ Annee} = 1992}\left( \text{Gain} \right) \right)\]

Joueurs ayant joué à Rolland Garros 92: \[\ t2\ = \Pi_{\text{NuJoueur }}\left( \sigma_{\text{LieuTournoi} = \text{Rolland Garros } \land \text{ Annee} = 1992}\left( \text{Gain} \right) \right)\]

Réponse: \[\Pi_{\text{Nom},\text{ Nationalite}}\left( \text{Joueur }\Join(\ t1\ \cap \ t2\ ) \right)\]

d) Joueurs chez Peugeot: \[\ t1\ = \Pi_{\text{Nujoueur}}\left( \sigma_{\text{Sponsor} = \text{Peugeot}}\left( \text{Gain} \right) \right)\] Joueurs ayant gagné à Rolland Garros un match: \[\ t2\ = \Pi_{\text{NuJoueur}}\left( \rho_{\text{NuJoueur } \leftarrow \text{ NuGagnant}}\left( \sigma_{\text{LieuTournoi} = \text{Rolland Garros}}\left( \text{Rencontre} \right) \right) \right)\]

Réponse: \[\Pi_{\text{Nom},\text{ Nationalite}}\left( \text{Joueur }\Join(t1\ \cap \ t2) \right)\]

Bonus:

  1. \[\Pi_{\text{NuJoueur}}\left( \text{Joueur} \right) - \Pi_{\text{NuJoueur}}\left( \sigma_{\text{Sponsor} = \text{Peugeot}}\left( \text{Gain} \right) \right)\]

  2. \[\begin{array}{r} x = \sigma_{\text{LieuTournoi} = \text{Rolland Garros } \land \text{ Annee} = 2013}\left( \text{Rencontre} \right) \\ \Pi_{\text{Nujoueur}}\left( \rho_{\text{Nujoueur } \leftarrow \text{ NuPerdant}}(x) \right) - \Pi_{\text{Nujoueur}}\left( \rho_{\text{Nujoueur } \leftarrow \text{ NuGagnant}}(x) \right) \end{array}\]


Page incomplète ou erronée? Contribuez sur le repo