I want to update only the last row from the table logs.. which is arranged in ascending order by ID field.. following query gives the error
update Inventory.logs as a set a.Session=90 where a.ID=(select max(ID) from Inventory.logs)
gives error
you cant specify target table a for update in From Clause