How to do an update with where to a temporary table of type varibale?

0

This is my query I insert the entries, and I want to perform an update using the where

    
asked by 21.09.2017 в 19:51
source

1 answer

0

You have several ways to solve the case, one of the simplest is to rename the column 'ProductID' - in the subquery - to avoid naming the table without falling into ambiguity.

...FROM (
SELECT produc.ProductoID AS id, SUM(...
) AS rg
WHERE ProductoID = rg.id...
    
answered by 21.09.2017 в 20:20