Hi all,

I'm trying to write the following query, but I can't understand how to define left joins...
Could please someone give me help?

SELECT DISTINCT operatore.id, anagrafica.nome
FROM operatore
JOIN anagrafica ON operatore.id_anagrafica = anagrafica.id
LEFT JOIN acl ON acl.id_operatore = operatore.id
WHERE acl.cod_ruolo = 'vet' AND operatore.data_fine_attivita IS NULL
ORDER BY operatore.id, anagrafica.nome;

jo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to