1)
select * from _pm_messaggioiniziale a join _pm_evidenza b on b.ID_PM = a.PM_ID join _pm_invitati c on c.ID_PM = a.PM_ID
2)
select * from _pm_messaggioiniziale a join _pm_invitati c on c.ID_PM = a.PM_ID where not exists(select * from _pm_evidenza b where b.ID_PM = a.PM_ID)
ho scritto "a braccio", spero di non aver fatto errori

Rispondi quotando