How can I update a table that is also present in a subquery? Do I have to do it in 2 stages? (create a temporary table - put the selected data in it and then update the fina
UPDATE invoiceLine INNER JOIN terminal ON invoiceLine.ctn = terminal.ctn INNER JOIN network ON terminal.network = network.id SET invoiceLine.network = network.label