Bonjour,

voila j'ai deux requêtes comme suit :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SELECT DISTINCT
        LCase(e.no) as mail
FROM
        ne n
        join pers*i on (n.ref_int = i.id)
        join mail e on (e.ref_pers = i.id)
WHERE
        n.ref IN (select id from site where idr = 'www.tot.com') and
        n.st = 0 and
        i.st = 0 and
        e.st = 0 and
        n.id > 0 and
        i.id > 0 and
        e.id > 0 
	ORDER BY mail;
puis

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
SELECT 
        LCase(e.no) as mail
FROM
        mail e, ne n 
 
WHERE 
        e.ref_pers=n.ref_int and
        e.sta=0 and 
        n.sta=-1 
        ORDER BY mail;
Ma question est comment en faire qu'une seule? Est ce possible?

Merci