1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| SELECT Audits.nom_audit AS nom_audit,
Audits.date_prev AS date_prev,
Audits.date_reel AS date_reel,
Audits.commentaires AS commentaires,
Audits.produits AS produits,
Audits.etiq_jaune AS etiq_jaune,
Audits.etiq_rouge AS etiq_rouge,
Audits.etiq_vert AS etiq_vert,
Audits.etiq_blanchePK AS etiq_blanchePK,
Audits.etiq_blancheHC AS etiq_blancheHC,
Audits.auditeur AS auditeur,
Audits.autre_auditeur1 AS autre_auditeur1,
Audits.autre_auditeur2 AS autre_auditeur2,
Types.nom_type AS nom_type,
Societes.nom_societe AS nom_societe,
Sites.nom_site AS nom_site,
Audits.id_type AS id_type
FROM Sites RIGHT OUTER JOIN Audits ON (Sites.id_site = Audits.id_site) ,
Societes INNER JOIN Audits ON (Societes.id_societe = Audits.id_societe),
Types INNER JOIN Audits ON (Types.id_type = Audits.id_type)
WHERE Audits.date_prev BETWEEN '07/01/2008' AND '13/01/2008'
GROUP BY Audits.auditeur, Audits.autre_auditeur1, Audits.autre_auditeur2, Audits.date_prev, Audits.date_reel, Audits.commentaires, Audits.produits, Audits.etiq_jaune, Audits.etiq_rouge, Audits.etiq_vert, Audits.etiq_blanchePK, Audits.etiq_blancheHC, Types.nom_type, Societes.nom_societe, Sites.nom_site, Audits.nom_audit, Audits.id_type
ORDER BY auditeur ASC, date_prev ASC, autre_auditeur1 ASC, autre_auditeur2 ASC |
Partager