pb requête technicité nulle

pb requête technicité nulle - SQL/NoSQL - Programmation

Marsh Posté le 14-03-2004 à 12:38:42    


Bonjour, je dois ecrire la requête :
Quels employés ont occupé au moins une fois un poste non technique (technicité nulle)?
 
J'ai trouvé un truc de ce genre:
 
select nom, prénom
from employé E, Occuper O, Poste P
where E.Numempl=O.NumEmpl and P.Numposte=O.NumPoste and
P.numposte in (select P.numposte  
               from employé E, Occuper O, Poste P  
               where E.Numempl=O.NumEmpl and P.numposte =O.Numposte
and P.numposte and not(technicité));
 
j'ai les tables suivantes :
Employé (NumEmpl, Nom, Prénom, Niveau technique, dateNaiss)  
Poste (Numposte, libelléposte, Technicité, NumType#)  
Occuper (Numempl#, NumPoste#)  
type (NumType, LibelléType)  
 
merci de m'aider à corriger ma requête:

Reply

Marsh Posté le 14-03-2004 à 12:38:42   

Reply

Marsh Posté le 14-03-2004 à 12:48:37    

select distinct E.nom, E.prenom
from employe as E inner join occuper as O on (E.numempl = O.numempl)
inner join poste as P on (O.numposte = P.numposte)
where P.technicite is null;

Reply

Marsh Posté le 15-03-2004 à 11:02:00    

merci pour ta réponse !

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed