Les SELECT et WHERE imbriqués
:ptdr::ptdr: Comment ca marche Voici Ma Requête;
Code:
1 2 3 4
| SELECT DISTINCT P.idProjet ,(SELECT COUNT(DISTINCT EP.idEtape)
From EtapexProjet EP, Etape E
WHERE (P.idProjet = EP.idProjet) ) AS Livrable
From Projet P ,EtapexProjet EP |
Comment a partir du numero de Livrable dans le resultat y ajout la nomEtape
Resultat. Avez vous des trucs pour comprendre les imprications des select et des where :(;
Code:
1 2 3 4
| idProjet Livrable
1 4
2 5
3 3 |
Resultat voulu
Code:
1 2 3 4
| idProjet Livrable nomEtape
1 4 Surveillance et Metrise Document de clôture du projet
2 5 Cloture
3 3 Realisation |
Tbl Etape
Code:
1 2 3 4 5 6
| IdEtape nomEtape Livrable
1 Demarrage Planificationn du Projet (périmètre,activités,ressources requis,coût
2 Prevision Exécutin du plan du projet
3 Realisation Rapport de performance
4 Surveillance et Metrise Document de clôture du projet
5 Cloture Définition de Base de projet(objectifs,chef du projet |
TBL EtapexProjet
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| idProjet idEtape
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
5 2
1 3
2 3
3 3 |
:ptdr::ptdr:
Tbl Projet