refs #6493 refactorizar-procedimientos-vn2008-parte_2 #2235

Merged
jbreso merged 39 commits from 6493-refactorizar-procedimientos-vn2008-parte_2 into dev 2024-04-24 05:18:59 +00:00
2 changed files with 8 additions and 7 deletions
Showing only changes of commit 1534402640 - Show all commits

View File

@ -206,7 +206,8 @@ BEGIN
SUM(b2.', vTwoYearsAgo,') twoYearsAgo SUM(b2.', vTwoYearsAgo,') twoYearsAgo
jbreso marked this conversation as resolved Outdated

(Tab) GROUP BY b1.id)
sub ON sub.id = b.id

(Tab) GROUP BY b1.id) sub ON sub.id = b.id
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

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

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');