Hello Cristian, merci mult de tot, e asa cum ai spus tu...
Alex. CD> Extras din documentatia de MySQL: CD> The queries: CD> SELECT * FROM table1 WHERE id NOT IN (SELECT id FROM table2); CD> SELECT * FROM table1 WHERE NOT EXISTS (SELECT id FROM table2 where CD> table1.id=table2.id); CD> Can be rewritten as: CD> SELECT table1.* FROM table1 LEFT JOIN table2 ON table1.id=table2.id CD> where table2.id IS NULL CD> Alex wrote: >> >> cum pot sa scriu in mysql un statement de genul: >> SELECT codice,codice_esterno,cognome,nome,cfisc_piva FROM anagrafica >> WHERE (codice<>ALL(SELECT codice_nominativo FROM dati_consenso)) ORDER BY cognome >> >> Alex. CD> Deci cred ca ar trebui ceva de genul: CD> SELECT t1.* FROM anagrafica as t1 LEFT JOIN dati_consenso as t2 ON CD> t1.codice=t2.codice_nominativo WHERE t2.codice_nominativo IS NULL ORDER CD> BY t1.cognome CD> "Ho sparato anch'io al caso" but hope it helps ;) CD> Cristi CD> --- CD> Pentru dezabonare, trimiteti mail la CD> [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. CD> REGULI, arhive si alte informatii: http://www.lug.ro/mlist/ --- Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
