refs #6493 refactorizar-procedimientos-vn2008-parte_2 #2235
|
@ -206,7 +206,8 @@ BEGIN
|
||||||
SUM(b2.', vTwoYearsAgo,') twoYearsAgo
|
SUM(b2.', vTwoYearsAgo,') twoYearsAgo
|
||||||
jbreso marked this conversation as resolved
Outdated
|
|||||||
FROM tmp.nest b1
|
FROM tmp.nest b1
|
||||||
JOIN tmp.balance_aux b2 on b2.lft BETWEEN b1.lft and b1.rgt
|
JOIN tmp.balance_aux b2 on b2.lft BETWEEN b1.lft and b1.rgt
|
||||||
jbreso marked this conversation as resolved
Outdated
carlosap
commented
funciones en mayúsculas funciones en mayúsculas
|
|||||||
GROUP BY b1.id)sub ON sub.id = b.id
|
GROUP BY b1.id
|
||||||
|
)sub ON sub.id = b.id
|
||||||
SET b.', vYear, ' = thisYear,
|
SET b.', vYear, ' = thisYear,
|
||||||
jbreso marked this conversation as resolved
Outdated
guillermo
commented
Utilizar un solo DROP para dropear las 2 tablas. Utilizar un solo DROP para dropear las 2 tablas.
|
|||||||
b.', vOneYearAgo, ' = oneYearAgo,
|
b.', vOneYearAgo, ' = oneYearAgo,
|
||||||
b.', vTwoYearsAgo, ' = twoYearsAgo');
|
b.', vTwoYearsAgo, ' = twoYearsAgo');
|
||||||
|
|
Loading…
Reference in New Issue
(Tab) GROUP BY b1.id)
sub ON sub.id = b.id