Salve,
mi chiedevo come si puo fare una SELECT dentro la WHERE condition.

Dunque

Io devo fare qualcosa del genere

SELECT u.nick FROM utente u, foto f WHERE (SELECT 1 FROM foto WHERE utente = u.nick AND stato = 1)

Deve restituirmi tutti quegli utenti che nella tabella FOTO sono presenti con stato 1!

Grazie