← Tutti gli articoli

plsql: group by min max having

03 October 2010  ·  PLSQL · Article  ·  63 visite

plsql group by min max having

 
select u.idutente,u.usr,u.nominativo,u.blocco, u.readonly, min(l.dataaccesso) as LastAccessDate  from UTENTE u left outer JOIN logaccesso l ON
u.idutente=l.idutente
group by u.idutente,u.cancellato,u.usr,u.nominativo,u.blocco, u.readonly,l.dataaccesso, l.tentativo
having u.cancellato=0 and l.tentativo=0
Si è verificato un errore imprevisto. Ricarica

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.