Requête SQL... :-\

Requête SQL... :-\ - Programmation

Marsh Posté le 23-05-2002 à 21:20:06    

Je débute en SQL et j'ai VRAIMENT du mal... Si quelqu'un pouvait me faire ça, ça serait sympa :)
 
j'ai deux tables :
 
'PERSONNES' ayant les champs 'Numero', 'Nom', 'Prénom'
'ABONNES' ayant les champs 'Numero', 'Date inscription'
 
 
Je voudrais récupérer l'ensemble des noms des personnes qui ne sont pas abonnées.
 
Merci beaucoup  :(

Reply

Marsh Posté le 23-05-2002 à 21:20:06   

Reply

Marsh Posté le 23-05-2002 à 21:46:08    

si c'est en mysql, essaie ca :
SELECT * from PERSONNES left join ABONNES ON ABONNES.Numero = PERSONNES.Numero where ABONNES.Numero is null

 

[jfdsdjhfuetppo]--Message édité par mrbebert le 23-05-2002 à 21:49:31--[/jfdsdjhfuetppo]

Reply

Marsh Posté le 23-05-2002 à 21:46:52    

LightKyle a écrit a écrit :

select * from PERSONNES where Numero not in (select Numero from ABONNES)  




 
si il veut que les noms, c'est SELECT nom, mais john avait compris, je pense ! Les John sont supérieurement intelligents, c'est bien connu !  :D  :hello:

Reply

Marsh Posté le 23-05-2002 à 22:08:37    

LightKyle> Ca marche nickel, MERCI BEAUCOUP  :)  :jap:  :hello:  
 
mrbebert> Merci aussi, mais non, c'était pas en mySQL  :D  
 
John of the Baptiste> Oui j'avais compris, mais merci de l'avoir dit quand même  :o   :D

Reply

Marsh Posté le 23-05-2002 à 22:15:13    

Si vous maitrisez le SQL, allez voir sur mon topic, siouplait, je suis aussi en galère ! :cry:

Reply

Sujets relatifs:

Leave a Replay

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