Cos'è sbagliato?
codice:
update categorie set Stato = 0 where Id = (select  distinct(C.Id) from categorie C, prodotti P  where  P.IdCategoria=C.Id and P.IdProduttore = 13 and (select count(P.Id) as Numc from prodotti P where P.Disponibilita = 1 and P.IdProduttore= 13 and P.IdCategoria= C.Id ) = 0)
questo blocco funziona in quanto mi tira fuori i record voluti
codice:
(select  distinct(C.Id) from categorie C, prodotti P  where  P.IdCategoria=C.Id and P.IdProduttore = 13 and (select count(P.Id) as Numc from prodotti P where P.Disponibilita = 1 and P.IdProduttore= 13 and P.IdCategoria= C.Id ) = 0)
con questo blocco:
update categorie set Stato = 0 where Id =
codice:
vorrei semplicemente aggiornare i record della tabella categorie precedentemente trovati
mi da errore