7983-testToMaster_2438 #2977

Merged
alexm merged 212 commits from 7983-testToMaster_2438 into master 2024-09-17 05:36:47 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 2b12e046e4 - Show all commits

View File

@ -1,5 +1,5 @@
-- Calculamos todos los volumenes de todos los tickets una sola vez
CREATE OR REPLACE TEMPORARY TABLE tTicketVolume
CREATE OR REPLACE TEMPORARY TABLE tmp.tTicketVolume
(PRIMARY KEY (id))
ENGINE = MEMORY
SELECT t.id, SUM(s.quantity * ic.cm3delivery / 1000000) volume
@ -13,4 +13,4 @@ UPDATE vn.ticket t
JOIN tTicketVolume tv ON tv.id = t.id
SET t.volume = tv.volume;
DROP TEMPORARY TABLE tTicketVolume;
DROP TEMPORARY TABLE tmp.tTicketVolume;