Requete sql

Bojour, voila j’ai 2 tables: commandes et commandesClient

Table.Commandes: 
id
titre
user

et

Table.CommandesClient:
id
idCommande
statut

Ce que j’aimerai faire en une seul requete c’est d’affiché seulement les commandes et commandeClient dont aucun statut de la table commandeClient n’est egal à “Statut1”
Donc pour une meme commande, si j’ai 3 CommandeClient avec ces 3 statuts(statut2, statut2, statut3), il faut que j’affiche cette commande.
En revanche, une 2eme commande avec 2 commandeClient dont les statuts sont (statut2, statut1) , il ne faut pas afficher cette commande

Voila j’espere avoir été assez clair.

Merci
Edité le 26/02/2008 à 09:21

J’ai essayé ca:

SELECT *
FROM commande, commandeClientRubrique, client, journal
WHERE commandeClientRubrique_idCommande = commande_id
AND commandeClientRubrique_idClient = client_id
AND journal_id = commande_idSource
AND commandeClientRubrique_mode <> 'Remonté'
AND (
commandeClientRubrique_priorite = 'Neutre'
OR commandeClientRubrique_priorite = 'intéressant'
OR commandeClientRubrique_priorite = 'validé'
OR commandeClientRubrique_priorite = 'cité'
OR commandeClientRubrique_priorite = 'urgent'
)
AND commandeClientRubrique_statut = 'Scanné'
AND commandeClientRubrique_statut <> 'Supprimé'
AND commandeClientRubrique_dateCommande LIKE '%2008-02-26%'
AND commande_id NOT
IN (

SELECT commande_id
FROM commande, commandeClientRubrique
WHERE commandeClientRubrique_idCommande = commande_id
AND commandeClientRubrique_statut = 'Posté'
AND commandeClientRubrique_dateCommande LIKE '%2008-02-26%'
)
GROUP BY commande_id
ORDER BY client_priorite, commande_titre

mais mysql me sort un erreur

#1064 - You have an error in your SQL syntax near ‘select commande_id from commande , commandeClientRubrique where commandeClientRu’ at line 1

qq’un a une idée?
Edité le 26/02/2008 à 08:38

ok, pour ceux que ca interesse, j’ai trouvé, c’etait une erreur de syntaxe, j’ai ajouté des guillemet

NOT IN ( "........ ") au lieu de NOT IN (......) 

et ca fonctionne… Voila