All Forums UDA
Max 13 posts Joined 09/06
17 May 2007
Performance Queries...

Hello...The same query running on test Db go faster (difference is about 20 second )than prod DB.On all the environments, there're the same statistics....and the same data.These are the system characteristics (in Mb):Test:Perm Space: 4296Spool Space: 536870Temp Space: 93693Current Perm: 409AMP: 30Prod:Perm Space: 838Spool Space: 2810519Temp Space: 702629Current Perm: 413AMP: 84Any ideas are welcomeThanks in advanceMassimiliano

Barry-1604 176 posts Joined 07/05
17 May 2007

Try doing the following:diagnostic helpstats on for session;explain ...put your query here...;When you get the result back from the explain, at the end of it, it will have some "Recommended Stats". Go through there and make sure that you have stats collected on all single column recommendations. I would not implement the multi-column recommendations without further analysis, as I've seen many cases where they don't help and can hurt if you have a high number of NULL values in one of the columns. Just because you have the same statistics in both environments does not mean that they are the best statistics for the query. This diagnostic will tell you what column statistics the optimizer is looking for in order to solve the query in the most efficient way.Beyond that, if you are still having issues, you would probably need to post the query, the explains (from both prod and test), and the definitions of the tables involved along with stats being collected in order to have anyone help you with it.Good luck!

joedsilva 505 posts Joined 07/05
18 May 2007

In addition to what Barry suggested,You would also need to look into the skew factors. It could be either skew in the table as such or skew in the intermediate spool files generated as part of the query. Since the number of AMPS in Test is 30 and that in prod is 84, prod has the possibility of having higher skew.

Max 13 posts Joined 09/06
18 May 2007

Thanks very much...I'm following your suggestions...and I hope to answer you as soon as possible... :-)

Max 13 posts Joined 09/06
18 May 2007

I.At the first i want to describe you my db characteristics.The DB is a snowflake schema DataMart. The dimension table have a low number of rows (2 to 200,000) and the fact table have a high numeber of rows (2,000,000).The dimension table have an high skew factor (6 to 45), the fact table have a low skew factor (1).Before i post this thread, i collected statistics using explain statements, but only for the fact table. Now.... if i execute the query late in the day when many or all the users is offline i obtain the following results :Production 9/10 secTest 13/19 secOtherwise if i collect ALL the statistics suggested by the explain statements (fact and dimension tables), i obtain the following results :Production 10/13 secTest 20/25So in the previous post i had mistaken, because in this case the production query is faster than the test query.But.... it seems that, if i collect all statistics suggested by the explain, the query performance are worst, while if i collect only the statistics on the fact table the query performance are better.So... i would like to ask you :why this happens ? Maybe it's depends from the datamart design or from the skew factor of the dimension table ?Thanks in advance for your attention.P.S I attach in order :1 - table definition, 2 - query Definition,3 - explain results in test4 - explain results i production5 - skew factor summary.************************************************Table definitions************************************************CREATE SET TABLE DOL_DM.DOL_DIM_TDD_TPRETE ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_TPRETE INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), CD_TPRETE CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, DS_TPRETE VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_TPRETE );-----------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_TPSERV ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_TIPOSERVIZIO INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), ID_TPRETE INTEGER NOT NULL, CD_TIPOSERVIZIO CHAR(2) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, DS_TIPOSERVIZIO VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_TIPOSERVIZIO );-------------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_FASCIA ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_FASCIAORARIA INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), ID_TIPOSERVIZIO INTEGER NOT NULL, CD_FASCIAORARIA CHAR(2) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, DS_FASCIAORARIA VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_FASCIAORARIA );------------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_SOGLIE ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_SOGLIATOLLER INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), ID_TPRETE INTEGER NOT NULL, CD_SOGLIATOLLER INTEGER NOT NULL, DS_SOGLIATOLLER VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_SOGLIATOLLER );-------------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_MODGES ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_MODGESTIONE INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), CD_MODGESTIONE VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, DS_MODGESTIONE VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_MODGESTIONE );---------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_TPPUNT ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_TIPOPUNTUAL INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), CD_TIPOPUNTUAL VARCHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, DS_TIPOPUNTUAL VARCHAR(60) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_TIPOPUNTUAL );---------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_ITINER ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_ITINER INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), ID_CMP INTEGER NOT NULL, DS_ITINER VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC, CD_NODEST VARCHAR(10) CHARACTER SET LATIN NOT CASESPECIFIC, DS_NODEST VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC, CD_NODSPE VARCHAR(10) CHARACTER SET LATIN NOT CASESPECIFIC, DS_NODSPE VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC, CD_ITINER VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_ITINER );-------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_CMP ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_CMP INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), ID_POLO INTEGER NOT NULL, CD_CMP CHAR(10) CHARACTER SET LATIN NOT CASESPECIFIC, DS_CMP VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_CMP );-------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_POLO ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_POLO INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), ID_NAZION INTEGER NOT NULL, CD_POLO CHAR(3) CHARACTER SET LATIN NOT CASESPECIFIC, DS_POLO VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_POLO );-----------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_NAZION ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_NAZION INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 2147483647 NO CYCLE), CD_NAZION CHAR(2) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, DS_NAZION VARCHAR(100) CHARACTER SET LATIN NOT CASESPECIFIC)UNIQUE PRIMARY INDEX ( ID_NAZION );---------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_GIORNO ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, DS_GIORNO VARCHAR(60) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL)UNIQUE PRIMARY INDEX ( ID_GIORNO );---------------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_TGAPR ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_TGAPR INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_TOTGGAPR DATE FORMAT 'YYYY-MM-DD' NOT NULL)UNIQUE PRIMARY INDEX ( ID_TGAPR );-----------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_RGAPR ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_RGAPR INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_ROLLGGAPR DATE FORMAT 'YYYY-MM-DD' NOT NULL)UNIQUE PRIMARY INDEX ( ID_RGAPR );---------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_RGACO ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_RGACO INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_ROLLGGACO DATE FORMAT 'YYYY-MM-DD' NOT NULL)UNIQUE PRIMARY INDEX ( ID_RGACO );-------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_GGSETT ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_GGSETT INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, CD_MESE INTEGER NOT NULL, DS_MESE VARCHAR(60) CHARACTER SET LATIN NOT CASESPECIFIC, DT_GGSETT1 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGSETT2 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGSETT3 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGSETT4 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGSETT5 DATE FORMAT 'YYYY-MM-DD' NOT NULL)UNIQUE PRIMARY INDEX ( ID_GGSETT );----------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_GGSTCO ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_GGSTCO INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGSTCO DATE FORMAT 'YYYY-MM-DD')UNIQUE PRIMARY INDEX ( ID_GGSTCO );-------------------------------------------CREATE SET TABLE DOL_DM.DOL_DIM_TDD_GGMESE ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_GGMESE INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, CD_MESE INTEGER NOT NULL, DS_MESE VARCHAR(60) CHARACTER SET LATIN NOT CASESPECIFIC, DT_ROLLGGMESCOR DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESCOR DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO1 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO2 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO3 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO4 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO5 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO6 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO7 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO8 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO9 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO10 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO11 DATE FORMAT 'YYYY-MM-DD' NOT NULL, DT_GGMESMENO12 DATE FORMAT 'YYYY-MM-DD' NOT NULL)UNIQUE PRIMARY INDEX ( ID_GGMESE );---------------------------------------------CREATE SET TABLE DOL_DM.DOL_FAT_TDD_PUNTUA ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( ID_FASCIAORARIA INTEGER NOT NULL, ID_TIPOPUNTUAL INTEGER NOT NULL, ID_SOGLIATOLLER INTEGER NOT NULL, ID_ITINER INTEGER NOT NULL, ID_MODGESTIONE INTEGER NOT NULL, ID_GIORNO DATE FORMAT 'YYYY-MM-DD' NOT NULL, NR_TRASPIANORD INTEGER, NR_TRASPIANSTRA INTEGER, NR_TRASPEFFORD INTEGER, NR_TRASPEFFSTRA INTEGER, NR_TRASPEFFNPIA INTEGER, NR_TRASPORARIO INTEGER, QT_KGPIANORD DECIMAL(18,3), QT_KGPIANSTRA DECIMAL(18,3), QT_KGEFFORD DECIMAL(18,3), QT_KGEFFSTRA DECIMAL(18,3), QT_KGORARIO DECIMAL(18,3), QT_KGEFFNPIA DECIMAL(18,3))UNIQUE PRIMARY INDEX ( ID_FASCIAORARIA ,ID_TIPOPUNTUAL ,ID_SOGLIATOLLER ,ID_ITINER ,ID_MODGESTIONE ,ID_GIORNO );****************************************Explain results in test*************************************** Explanation 1) First, we lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a11. 2) Next, we lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a127. 3) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a126. 4) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 5) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a14. 6) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 7) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 8) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a123. 9) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a128. 10) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a125. 11) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a13. 12) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 13) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 14) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a124. 15) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a122. 16) We lock DOL_DM.a11 for read, we lock DOL_DM.a127 for read, we lock DOL_DM.a126 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a14 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a123 for read, we lock DOL_DM.a128 for read, we lock DOL_DM.a125 for read, we lock DOL_DM.a13 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a124 for read, and we lock DOL_DM.a122 for read. 17) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from DOL_DM.a14 by way of an all-rows scan with a condition of ("DOL_DM.a14.ID_TPRETE = 2") into Spool 24 (all_amps), which is duplicated on all AMPs. The size of Spool 24 is estimated with high confidence to be 210 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 25 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 25 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 18) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 26 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 26 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 3.78 seconds. 19) We do an all-AMPs JOIN step from Spool 25 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 25 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO1"). The result goes into Spool 27 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 27 by row hash. The size of Spool 27 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 20) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 27 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 27 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 23 (all_amps), which is built locally on the AMPs. The size of Spool 23 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 21) We do an all-AMPs SUM step to aggregate from Spool 23 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 28. The size of Spool 28 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 22) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 28 (Last Use) by way of an all-rows scan into Spool 21 (all_amps), which is built locally on the AMPs. The size of Spool 21 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 33 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 33 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 23) We do an all-AMPs JOIN step from Spool 33 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 33 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO10"). The result goes into Spool 35 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 35 by row hash. The size of Spool 35 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 24) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 35 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 35 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 31 (all_amps), which is built locally on the AMPs. The size of Spool 31 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 25) We do an all-AMPs SUM step to aggregate from Spool 31 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 36. The size of Spool 36 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 26) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 36 (Last Use) by way of an all-rows scan into Spool 20 (all_amps), which is built locally on the AMPs. The size of Spool 20 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 41 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 41 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 27) We do an all-AMPs JOIN step from Spool 41 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 41 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO11"). The result goes into Spool 43 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 43 by row hash. The size of Spool 43 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 28) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 43 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 43 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 39 (all_amps), which is built locally on the AMPs. The size of Spool 39 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 29) We do an all-AMPs SUM step to aggregate from Spool 39 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 44. The size of Spool 44 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 30) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 44 (Last Use) by way of an all-rows scan into Spool 19 (all_amps), which is built locally on the AMPs. The size of Spool 19 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 49 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 49 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 31) We do an all-AMPs JOIN step from Spool 49 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 49 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO12"). The result goes into Spool 51 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 51 by row hash. The size of Spool 51 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 32) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 51 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 51 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 47 (all_amps), which is built locally on the AMPs. The size of Spool 47 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 33) We do an all-AMPs SUM step to aggregate from Spool 47 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 52. The size of Spool 52 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 34) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 52 (Last Use) by way of an all-rows scan into Spool 18 (all_amps), which is built locally on the AMPs. The size of Spool 18 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 57 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 57 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 35) We do an all-AMPs JOIN step from Spool 57 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 57 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO2"). The result goes into Spool 59 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 59 by row hash. The size of Spool 59 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 36) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 59 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 59 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 55 (all_amps), which is built locally on the AMPs. The size of Spool 55 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 37) We do an all-AMPs SUM step to aggregate from Spool 55 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 60. The size of Spool 60 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 38) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 60 (Last Use) by way of an all-rows scan into Spool 17 (all_amps), which is built locally on the AMPs. The size of Spool 17 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 65 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 65 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 39) We do an all-AMPs JOIN step from Spool 65 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 65 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO3"). The result goes into Spool 67 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 67 by row hash. The size of Spool 67 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 40) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 67 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 67 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 63 (all_amps), which is built locally on the AMPs. The size of Spool 63 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 41) We do an all-AMPs SUM step to aggregate from Spool 63 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 68. The size of Spool 68 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 42) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 68 (Last Use) by way of an all-rows scan into Spool 16 (all_amps), which is built locally on the AMPs. The size of Spool 16 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 73 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 73 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 43) We do an all-AMPs JOIN step from Spool 73 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 73 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO4"). The result goes into Spool 75 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 75 by row hash. The size of Spool 75 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 44) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 75 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 75 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 71 (all_amps), which is built locally on the AMPs. The size of Spool 71 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 45) We do an all-AMPs SUM step to aggregate from Spool 71 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 76. The size of Spool 76 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 46) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 76 (Last Use) by way of an all-rows scan into Spool 15 (all_amps), which is built locally on the AMPs. The size of Spool 15 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 81 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 81 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 47) We do an all-AMPs JOIN step from Spool 81 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 81 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO5"). The result goes into Spool 83 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 83 by row hash. The size of Spool 83 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 48) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 83 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 83 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 79 (all_amps), which is built locally on the AMPs. The size of Spool 79 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 49) We do an all-AMPs SUM step to aggregate from Spool 79 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 84. The size of Spool 84 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 50) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 84 (Last Use) by way of an all-rows scan into Spool 14 (all_amps), which is built locally on the AMPs. The size of Spool 14 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 89 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 89 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 51) We do an all-AMPs JOIN step from Spool 89 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 89 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO6"). The result goes into Spool 91 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 91 by row hash. The size of Spool 91 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 52) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 91 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 91 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 87 (all_amps), which is built locally on the AMPs. The size of Spool 87 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 53) We do an all-AMPs SUM step to aggregate from Spool 87 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 92. The size of Spool 92 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 54) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 92 (Last Use) by way of an all-rows scan into Spool 13 (all_amps), which is built locally on the AMPs. The size of Spool 13 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 97 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 97 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 55) We do an all-AMPs JOIN step from Spool 97 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 97 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO7"). The result goes into Spool 99 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 99 by row hash. The size of Spool 99 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 56) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 99 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 99 are joined using a merge join, with a join condition of ( "ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 95 (all_amps), which is built locally on the AMPs. The size of Spool 95 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 57) We do an all-AMPs SUM step to aggregate from Spool 95 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 100. The size of Spool 100 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 58) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 100 (Last Use) by way of an all-rows scan into Spool 12 (all_amps), which is built locally on the AMPs. The size of Spool 12 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 105 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 105 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 59) We do an all-AMPs JOIN step from Spool 105 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 105 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO8"). The result goes into Spool 107 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 107 by row hash. The size of Spool 107 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 60) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 107 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 107 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 103 (all_amps), which is built locally on the AMPs. The size of Spool 103 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 61) We do an all-AMPs SUM step to aggregate from Spool 103 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 108. The size of Spool 108 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 62) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 108 (Last Use) by way of an all-rows scan into Spool 11 (all_amps), which is built locally on the AMPs. The size of Spool 11 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 113 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 113 is estimated with high confidence to be 31 rows. The estimated time for this step is 0.04 seconds. 63) We do an all-AMPs JOIN step from Spool 113 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 113 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_GGMESMENO9"). The result goes into Spool 115 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 115 by row hash. The size of Spool 115 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.89 seconds. 64) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 115 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 115 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 111 (all_amps), which is built locally on the AMPs. The size of Spool 111 is estimated with low confidence to be 217,668 rows. The estimated time for this step is 0.26 seconds. 65) We do an all-AMPs SUM step to aggregate from Spool 111 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 116. The size of Spool 116 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.11 seconds. 66) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 116 (Last Use) by way of an all-rows scan into Spool 10 (all_amps), which is built locally on the AMPs. The size of Spool 10 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 120 (all_amps), which is duplicated on all AMPs. The size of Spool 120 is estimated with high confidence to be 210 rows. The estimated time for this step is 0.03 seconds. 67) We do an all-AMPs JOIN step from Spool 120 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 120 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT1"). The result goes into Spool 122 (all_amps), which is built locally on the AMPs. The size of Spool 122 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 2.18 seconds. 68) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 122 (Last Use) by way of an all-rows scan. Spool 24 and Spool 122 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 123 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 123 by row hash. The size of Spool 123 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.11 seconds. 69) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 123 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 123 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 119 (all_amps), which is built locally on the AMPs. The size of Spool 119 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.08 seconds. 70) We do an all-AMPs SUM step to aggregate from Spool 119 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 124. The size of Spool 124 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 71) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 124 (Last Use) by way of an all-rows scan into Spool 9 (all_amps), which is built locally on the AMPs. The size of Spool 9 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 128 (all_amps), which is duplicated on all AMPs. The size of Spool 128 is estimated with high confidence to be 210 rows. The estimated time for this step is 0.03 seconds. 72) We do an all-AMPs JOIN step from Spool 128 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 128 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT2"). The result goes into Spool 130 (all_amps), which is built locally on the AMPs. The size of Spool 130 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 2.18 seconds. 73) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 130 (Last Use) by way of an all-rows scan. Spool 24 and Spool 130 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 131 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 131 by row hash. The size of Spool 131 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.11 seconds. 74) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 131 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 131 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 127 (all_amps), which is built locally on the AMPs. The size of Spool 127 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.08 seconds. 75) We do an all-AMPs SUM step to aggregate from Spool 127 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 132. The size of Spool 132 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 76) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 132 (Last Use) by way of an all-rows scan into Spool 8 (all_amps), which is built locally on the AMPs. The size of Spool 8 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 136 (all_amps), which is duplicated on all AMPs. The size of Spool 136 is estimated with high confidence to be 210 rows. The estimated time for this step is 0.03 seconds. 77) We do an all-AMPs JOIN step from Spool 136 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 136 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT3"). The result goes into Spool 138 (all_amps), which is built locally on the AMPs. The size of Spool 138 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 2.18 seconds. 78) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 138 (Last Use) by way of an all-rows scan. Spool 24 and Spool 138 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 139 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 139 by row hash. The size of Spool 139 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.11 seconds. 79) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 139 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 139 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 135 (all_amps), which is built locally on the AMPs. The size of Spool 135 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.08 seconds. 80) We do an all-AMPs SUM step to aggregate from Spool 135 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 140. The size of Spool 140 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 81) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 140 (Last Use) by way of an all-rows scan into Spool 7 (all_amps), which is built locally on the AMPs. The size of Spool 7 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 144 (all_amps), which is duplicated on all AMPs. The size of Spool 144 is estimated with high confidence to be 210 rows. The estimated time for this step is 0.03 seconds. 82) We do an all-AMPs JOIN step from Spool 144 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 144 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT4"). The result goes into Spool 146 (all_amps), which is built locally on the AMPs. The size of Spool 146 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 2.18 seconds. 83) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 146 (Last Use) by way of an all-rows scan. Spool 24 and Spool 146 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 147 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 147 by row hash. The size of Spool 147 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.11 seconds. 84) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 147 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 147 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 143 (all_amps), which is built locally on the AMPs. The size of Spool 143 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.08 seconds. 85) We do an all-AMPs SUM step to aggregate from Spool 143 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 148. The size of Spool 148 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 86) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 148 (Last Use) by way of an all-rows scan into Spool 6 (all_amps), which is built locally on the AMPs. The size of Spool 6 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 152 (all_amps), which is duplicated on all AMPs. The size of Spool 152 is estimated with high confidence to be 210 rows. The estimated time for this step is 0.03 seconds. 87) We do an all-AMPs JOIN step from Spool 152 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 152 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT5"). The result goes into Spool 154 (all_amps), which is built locally on the AMPs. The size of Spool 154 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 2.18 seconds. 88) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 154 (Last Use) by way of an all-rows scan. Spool 24 and Spool 154 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 155 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 155 by row hash. The size of Spool 155 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.11 seconds. 89) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 155 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 155 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 151 (all_amps), which is built locally on the AMPs. The size of Spool 151 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.08 seconds. 90) We do an all-AMPs SUM step to aggregate from Spool 151 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 156. The size of Spool 156 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 91) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 156 (Last Use) by way of an all-rows scan into Spool 5 (all_amps), which is built locally on the AMPs. The size of Spool 5 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 160 (all_amps), which is duplicated on all AMPs. The size of Spool 160 is estimated with high confidence to be 930 rows. The estimated time for this step is 0.05 seconds. 3) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to DOL_DM.a13 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a13 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 162 (all_amps), which is redistributed by hash code to all AMPs into 5 hash join partitions. The size of Spool 162 is estimated with high confidence to be 113,358 rows. The estimated time for this step is 0.19 seconds. 92) We do an all-AMPs JOIN step from Spool 160 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 160 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_ROLLGGMESCOR"). The result goes into Spool 163 (all_amps), which is redistributed by hash code to all AMPs into 5 hash join partitions. The size of Spool 163 is estimated with low confidence to be 404,239 rows. The estimated time for this step is 4.91 seconds. 93) We do an all-AMPs JOIN step from Spool 162 (Last Use) by way of an all-rows scan, which is joined to Spool 163 (Last Use) by way of an all-rows scan. Spool 162 and Spool 163 are joined using a hash join of 5 partitions, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_ITINER = ID_ITINER)"). The result goes into Spool 159 (all_amps), which is built locally on the AMPs. The size of Spool 159 is estimated with low confidence to be 404,239 rows. The estimated time for this step is 0.41 seconds. 94) We do an all-AMPs SUM step to aggregate from Spool 159 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 164. The size of Spool 164 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.16 seconds. 95) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 164 (Last Use) by way of an all-rows scan into Spool 4 (all_amps), which is built locally on the AMPs. The size of Spool 4 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 169 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 169 is estimated with high confidence to be 129 rows. The estimated time for this step is 0.05 seconds. 3) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a11 are joined using a product join, with a join condition of ("DOL_DM.a11.ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 170 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 170 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 4.02 seconds. 96) We do an all-AMPs RETRIEVE step from DOL_DM.a13 by way of an all-rows scan with no residual conditions into Spool 171 (all_amps) fanned out into 7 hash join partitions, which is duplicated on all AMPs. The size of Spool 171 is estimated with high confidence to be 485,820 rows. The estimated time for this step is 0.39 seconds. 97) We do an all-AMPs JOIN step from Spool 169 (Last Use) by way of an all-rows scan, which is joined to Spool 170 (Last Use) by way of an all-rows scan. Spool 169 and Spool 170 are joined using a product join, with a join condition of ("ID_GIORNO = DT_ROLLGGACO"). The result goes into Spool 172 (all_amps), which is built locally on the AMPs into 7 hash join partitions. The size of Spool 172 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 2.62 seconds. 98) We do an all-AMPs JOIN step from Spool 171 by way of an all-rows scan, which is joined to Spool 172 (Last Use) by way of an all-rows scan. Spool 171 and Spool 172 are joined using a hash join of 7 partitions, with a join condition of ("ID_ITINER = ID_ITINER"). The result goes into Spool 167 (all_amps), which is built locally on the AMPs. The size of Spool 167 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 1.20 seconds. 99) We do an all-AMPs SUM step to aggregate from Spool 167 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 173. The size of Spool 173 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.31 seconds. 100) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 173 (Last Use) by way of an all-rows scan into Spool 3 (all_amps), which is built locally on the AMPs. The size of Spool 3 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 178 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 178 is estimated with high confidence to be 129 rows. The estimated time for this step is 0.05 seconds. 101) We do an all-AMPs JOIN step from Spool 178 (Last Use) by way of an all-rows scan, which is joined to Spool 26 (Last Use) by way of an all-rows scan. Spool 178 and Spool 26 are joined using a product join, with a join condition of ("ID_GIORNO = DT_ROLLGGAPR"). The result goes into Spool 180 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 180 by row hash. The size of Spool 180 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 2.73 seconds. 102) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 180 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 180 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 176 (all_amps), which is built locally on the AMPs. The size of Spool 176 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 1.02 seconds. 103) We do an all-AMPs SUM step to aggregate from Spool 176 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 181. The size of Spool 181 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.28 seconds. 104) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 181 (Last Use) by way of an all-rows scan into Spool 2 (all_amps), which is built locally on the AMPs. The size of Spool 2 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs JOIN step from Spool 24 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a11 are joined using a product join, with a join condition of ("DOL_DM.a11.ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 187 (all_amps), which is built locally on the AMPs into 7 hash join partitions. The size of Spool 187 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 4.71 seconds. 3) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 188 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 188 is estimated with high confidence to be 365 rows. The estimated time for this step is 0.08 seconds. 105) We do an all-AMPs JOIN step from Spool 171 (Last Use) by way of an all-rows scan, which is joined to Spool 187 (Last Use) by way of an all-rows scan. Spool 171 and Spool 187 are joined using a hash join of 7 partitions, with a join condition of ("ID_ITINER = ID_ITINER"). The result goes into Spool 189 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 189 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 2.26 seconds. 106) We do an all-AMPs JOIN step from Spool 188 (Last Use) by way of an all-rows scan, which is joined to Spool 189 (Last Use) by way of an all-rows scan. Spool 188 and Spool 189 are joined using a product join, with a join condition of ("ID_GIORNO = DT_TOTGGAPR"). The result goes into Spool 184 (all_amps), which is built locally on the AMPs. The size of Spool 184 is estimated with low confidence to be 2,562,855 rows. The estimated time for this step is 2.81 seconds. 107) We do an all-AMPs SUM step to aggregate from Spool 184 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 190. The size of Spool 190 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.68 seconds. 108) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 190 (Last Use) by way of an all-rows scan into Spool 1 (all_amps), which is built locally on the AMPs. The size of Spool 1 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a124 by way of an all-rows scan with no residual conditions into Spool 193 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 193 by row hash. The size of Spool 193 is estimated with high confidence to be 24 rows. The estimated time for this step is 0.01 seconds. 3) We do an all-AMPs RETRIEVE step from DOL_DM.a122 by way of an all-rows scan with no residual conditions into Spool 194 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 194 by row hash. The size of Spool 194 is estimated with high confidence to be 663 rows. The estimated time for this step is 0.02 seconds. 109) We do an all-AMPs JOIN step from DOL_DM.a127 by way of a RowHash match scan with no residual conditions, which is joined to Spool 193 (Last Use) by way of a RowHash match scan. DOL_DM.a127 and Spool 193 are joined using a merge join, with a join condition of ("ID_TIPOSERVIZIO = DOL_DM.a127.ID_TIPOSERVIZIO"). The result goes into Spool 195 (all_amps), which is duplicated on all AMPs. The size of Spool 195 is estimated with low confidence to be 720 rows. The estimated time for this step is 0.04 seconds. 110) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from DOL_DM.a125 by way of an all-rows scan with no residual conditions, which is joined to Spool 195 (Last Use) by way of an all-rows scan. DOL_DM.a125 and Spool 195 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 196 (all_amps), which is duplicated on all AMPs. The size of Spool 196 is estimated with low confidence to be 1,440 rows. The estimated time for this step is 0.05 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 21 (Last Use) by way of an all-rows scan into Spool 197 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 197 by row hash. The size of Spool 197 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 3) We do an all-AMPs RETRIEVE step from Spool 20 (Last Use) by way of an all-rows scan into Spool 198 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 198 by row hash. The size of Spool 198 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 4) We do an all-AMPs RETRIEVE step from Spool 19 (Last Use) by way of an all-rows scan into Spool 199 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 199 by row hash. The size of Spool 199 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 111) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 197 (Last Use) by way of a RowHash match scan, which is joined to Spool 198 (Last Use) by way of a RowHash match scan. Spool 197 and Spool 198 are full outer joined using a merge join, with a join condition of ("(ID_TIPOPUNTUAL = ID_TIPOPUNTUAL) AND ((ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND ((ID_MODGESTIONE = ID_MODGESTIONE) AND ((ID_FASCIAORARIA = ID_FASCIAORARIA) AND (ID_CMP = ID_CMP ))))"). The result goes into Spool 200 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 200 by row hash. The size of Spool 200 is estimated with no confidence to be 1,849 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 18 (Last Use) by way of an all-rows scan into Spool 203 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 203 by row hash. The size of Spool 203 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 112) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 199 (Last Use) by way of a RowHash match scan, which is joined to Spool 200 (Last Use) by way of a RowHash match scan. Spool 199 and Spool 200 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 204 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 204 by row hash. The size of Spool 204 is estimated with no confidence to be 5,067 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a126 by way of an all-rows scan with no residual conditions, which is joined to Spool 196 (Last Use) by way of an all-rows scan. DOL_DM.a126 and Spool 196 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 207 (all_amps), which is duplicated on all AMPs. The size of Spool 207 is estimated with low confidence to be 2,880 rows. The estimated time for this step is 0.05 seconds. 3) We do an all-AMPs JOIN step from DOL_DM.a123 by way of a RowHash match scan with no residual conditions, which is joined to Spool 194 (Last Use) by way of a RowHash match scan. DOL_DM.a123 and Spool 194 are joined using a merge join, with a join condition of ("ID_POLO = DOL_DM.a123.ID_POLO"). The result goes into Spool 208 (all_amps), which is built locally on the AMPs. The size of Spool 208 is estimated with low confidence to be 663 rows. The estimated time for this step is 0.01 seconds. 113) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from DOL_DM.a128 by way of an all-rows scan with no residual conditions, which is joined to Spool 207 (Last Use) by way of an all-rows scan. DOL_DM.a128 and Spool 207 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 209 (all_amps), which is duplicated on all AMPs. The size of Spool 209 is estimated with low confidence to be 8,640 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 17 (Last Use) by way of an all-rows scan into Spool 210 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 210 by row hash. The size of Spool 210 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 3) We do an all-AMPs JOIN step from Spool 203 (Last Use) by way of a RowHash match scan, which is joined to Spool 204 (Last Use) by way of a RowHash match scan. Spool 203 and Spool 204 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 211 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 211 by row hash. The size of Spool 211 is estimated with no confidence to be 10,683 rows. The estimated time for this step is 0.05 seconds. 4) We do an all-AMPs RETRIEVE step from Spool 16 (Last Use) by way of an all-rows scan into Spool 214 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 214 by row hash. The size of Spool 214 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 114) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 210 (Last Use) by way of a RowHash match scan, which is joined to Spool 211 (Last Use) by way of a RowHash match scan. Spool 210 and Spool 211 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASEWHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 215 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 215 by row hash. The size of Spool 215 is estimated with no confidence to be 19,058 rows. The estimated time for this step is 0.13 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 15 (Last Use) by way of an all-rows scan into Spool 218 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 218 by row hash. The size of Spool 218 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.02 seconds. 115) We do an all-AMPs JOIN step from Spool 214 (Last Use) by way of a RowHash match scan, which is joined to Spool 215 (Last Use) by way of a RowHash match scan. Spool 214 and Spool 215 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN(NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 219 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 219 by row hash. The size of Spool 219 is estimated with no confidence to be 30,393 rows. The estimated time for this step is 0.26 seconds. 116) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 218 (Last Use) by way of a RowHash match scan, which is joined to Spool 219 (Last Use) by way of a RowHash match scan. Spool 218 and Spool 219 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN(NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 222 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 222 is estimated with no confidence to be 44,828 rows. The estimated time for this step is 0.39 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 14 (Last Use) by way of an all-rows scan into Spool 225 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 225 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 117) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 222 (Last Use) by way of an all-rows scan, which is joined to Spool 225 (Last Use) by way of an all-rows scan. Spool 222 and Spool 225 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT(ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 226 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 226 is estimated with no confidence to be 62,456 rows. The estimated time for this step is 0.63 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 13 (Last Use) by way of an all-rows scan into Spool 229 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 229 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 118) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 226 (Last Use) by way of an all-rows scan, which is joined to Spool 229 (Last Use) by way of an all-rows scan. Spool 226 and Spool 229 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT(ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 230 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 230 is estimated with no confidence to be 83,343 rows. The estimated time for this step is 0.93 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 12 (Last Use) by way of an all-rows scan into Spool 233 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 233 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 119) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 230 (Last Use) by way of an all-rows scan, which is joined to Spool 233 (Last Use) by way of an all-rows scan. Spool 230 and Spool 233 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT(ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 234 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 234 is estimated with no confidence to be 107,547 rows. The estimated time for this step is 1.30 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 11 (Last Use) by way of an all-rows scan into Spool 237 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 237 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 120) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 234 (Last Use) by way of an all-rows scan, which is joined to Spool 237 (Last Use) by way of an all-rows scan. Spool 234 and Spool 237 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 238 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 238 is estimated with no confidence to be 135,101 rows. The estimated time for this step is 1.80 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 10 (Last Use) by way of an all-rows scan into Spool 241 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 241 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 121) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 238 (Last Use) by way of an all-rows scan, which is joined to Spool 241 (Last Use) by way of an all-rows scan. Spool 238 and Spool 241 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 242 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 242 is estimated with no confidence to be 166,042 rows. The estimated time for this step is 2.41 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 9 (Last Use) by way of an all-rows scan into Spool 245 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 245 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 122) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 242 (Last Use) by way of an all-rows scan, which is joined to Spool 245 (Last Use) by way of an all-rows scan. Spool 242 and Spool 245 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP))))"). The result goes into Spool 246 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 246 is estimated with no confidence to be 200,393 rows. The estimated time for this step is 3.13 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 8 (Last Use) by way of an all-rows scan into Spool 249 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 249 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 123) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 246 (Last Use) by way of an all-rows scan, which is joined to Spool 249 (Last Use) by way of an all-rows scan. Spool 246 and Spool 249 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL )END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 250 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 250 is estimated with no confidence to be 238,176 rows. The estimated time for this step is 4.01 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 7 (Last Use) by way of an all-rows scan into Spool 253 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 253 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 124) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 250 (Last Use) by way of an all-rows scan, which is joined to Spool 253 (Last Use) by way of an all-rows scan. Spool 250 and Spool 253 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 254 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 254 is estimated with no confidence to be 279,410 rows. The estimated time for this step is 5.01 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 6 (Last Use) by way of an all-rows scan into Spool 257 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 257 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 125) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 254 (Last Use) by way of an all-rows scan, which is joined to Spool 257 (Last Use) by way of an all-rows scan. Spool 254 and Spool 257 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 258 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 258 is estimated with no confidence to be 324,109 rows. The estimated time for this step is 6.18 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 5 (Last Use) by way of an all-rows scan into Spool 261 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 261 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 126) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 258 (Last Use) by way of an all-rows scan, which is joined to Spool 261 (Last Use) by way of an all-rows scan. Spool 258 and Spool 261 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 262 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 262 is estimated with no confidence to be 372,286 rows. The estimated time for this step is 7.55 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 4 (Last Use) by way of an all-rows scan into Spool 265 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 265 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 127) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 262 (Last Use) by way of an all-rows scan, which is joined to Spool 265 (Last Use) by way of an all-rows scan. Spool 262 and Spool 265 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL )END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 266 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 266 is estimated with no confidence to be 423,954 rows. The estimated time for this step is 9.10 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 3 (Last Use) by way of an all-rows scan into Spool 269 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 269 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 128) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 266 (Last Use) by way of an all-rows scan, which is joined to Spool 269 (Last Use) by way of an all-rows scan. Spool 266 and Spool 269 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 270 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 270 is estimated with no confidence to be 479,121 rows. The estimated time for this step is 10.94 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 2 (Last Use) by way of an all-rows scan into Spool 273 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 273 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 129) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 270 (Last Use) by way of an all-rows scan, which is joined to Spool 273 (Last Use) by way of an all-rows scan. Spool 270 and Spool 273 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMPIS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 274 (all_amps), which is redistributed by hash code to all AMPs. The result spool file will not be cached in memory. The size of Spool 274 is estimated with no confidence to be 537,798 rows. The estimated time for this step is 12.95 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 1 (Last Use) by way of an all-rows scan into Spool 277 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 277 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.04 seconds. 130) We do an all-AMPs JOIN step from Spool 208 (Last Use) by way of an all-rows scan, which is joined to Spool 209 (Last Use) by way of an all-rows scan. Spool 208 and Spool 209 are joined using a single partition hash join, with a join condition of ("ID_NAZION = ID_NAZION"). The result goes into Spool 278 (all_amps), which is redistributed by hash code to all AMPs into 12 hash join partitions. The size of Spool 278 is estimated with low confidence to be 63,648 rows. The estimated time for this step is 0.35 seconds. 131) We do an all-AMPs JOIN step from Spool 274 (Last Use) by way of an all-rows scan, which is joined to Spool 277 (Last Use) by way of an all-rows scan. Spool 274 and Spool 277 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMPIS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 279 (all_amps), which is redistributed by hash code to all AMPs into 12 hash join partitions. The result spool file will not be cached in memory. The size of Spool 279 is estimated with no confidence to be 599,992 rows. The estimated time for this step is 33.03 seconds. 132) We do an all-AMPs JOIN step from Spool 278 (Last Use) by way of an all-rows scan, which is joined to Spool 279 (Last Use) by way of an all-rows scan. Spool 278 and Spool 279 are joined using a hash join of 12 partitions, with a join condition of ("((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT(ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN(NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT(ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND ((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN(ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL )))"). The result goes into Spool 192 (group_amps), which is built locally on the AMPs. The size of Spool 192 is estimated with no confidence to be 599,992 rows. The estimated time for this step is 7.59 seconds. 133) Finally, we send out an END TRANSACTION step to all AMPs involved in processing the request. -> No rows are returned to the user as the result of statement 1. The contents of Spool 192 are sent back to the user as the result of statement 2. *************************************************************************** Explain results in production****************************************************************************** Explanation 1) First, we lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a11. 2) Next, we lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a127. 3) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a126. 4) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 5) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a14. 6) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 7) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 8) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a123. 9) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a128. 10) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a125. 11) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a13. 12) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 13) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a12. 14) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a124. 15) We lock a distinct DOL_DM."pseudo table" for read on a RowHash to prevent global deadlock for DOL_DM.a122. 16) We lock DOL_DM.a11 for read, we lock DOL_DM.a127 for read, we lock DOL_DM.a126 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a14 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a123 for read, we lock DOL_DM.a128 for read, we lock DOL_DM.a125 for read, we lock DOL_DM.a13 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a12 for read, we lock DOL_DM.a124 for read, and we lock DOL_DM.a122 for read. 17) We do an all-AMPs RETRIEVE step from DOL_DM.a14 by way of an all-rows scan with a condition of ("DOL_DM.a14.ID_TPRETE = 2") into Spool 24 (all_amps), which is duplicated on all AMPs. The size of Spool 24 is estimated with high confidence to be 588 rows. The estimated time for this step is 0.03 seconds. 18) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 25 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 25 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a11 by way of an all-rows scan with no residual conditions into Spool 26 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 26 is estimated with high confidence to be 2,334,152 rows. The estimated time for this step is 1.12 seconds. 19) We do an all-AMPs JOIN step from Spool 25 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 25 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO1)"). The result goes into Spool 27 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 27 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 20) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 27 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 27 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 23 (all_amps), which is built locally on the AMPs. The size of Spool 23 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 21) We do an all-AMPs SUM step to aggregate from Spool 23 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 28. The size of Spool 28 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 22) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 28 (Last Use) by way of an all-rows scan into Spool 21 (all_amps), which is built locally on the AMPs. The size of Spool 21 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 33 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 33 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 23) We do an all-AMPs JOIN step from Spool 33 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 33 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO10)"). The result goes into Spool 35 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 35 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 24) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 35 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 35 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 31 (all_amps), which is built locally on the AMPs. The size of Spool 31 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 25) We do an all-AMPs SUM step to aggregate from Spool 31 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 36. The size of Spool 36 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 26) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 36 (Last Use) by way of an all-rows scan into Spool 20 (all_amps), which is built locally on the AMPs. The size of Spool 20 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 41 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 41 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 27) We do an all-AMPs JOIN step from Spool 41 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 41 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO11)"). The result goes into Spool 43 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 43 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 28) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 43 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 43 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 39 (all_amps), which is built locally on the AMPs. The size of Spool 39 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 29) We do an all-AMPs SUM step to aggregate from Spool 39 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 44. The size of Spool 44 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 30) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 44 (Last Use) by way of an all-rows scan into Spool 19 (all_amps), which is built locally on the AMPs. The size of Spool 19 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 49 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 49 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 31) We do an all-AMPs JOIN step from Spool 49 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 49 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO12)"). The result goes into Spool 51 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 51 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 32) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 51 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 51 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 47 (all_amps), which is built locally on the AMPs. The size of Spool 47 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 33) We do an all-AMPs SUM step to aggregate from Spool 47 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 52. The size of Spool 52 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 34) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 52 (Last Use) by way of an all-rows scan into Spool 18 (all_amps), which is built locally on the AMPs. The size of Spool 18 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 57 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 57 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 35) We do an all-AMPs JOIN step from Spool 57 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 57 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO2)"). The result goes into Spool 59 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 59 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 36) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 59 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 59 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 55 (all_amps), which is built locally on the AMPs. The size of Spool 55 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 37) We do an all-AMPs SUM step to aggregate from Spool 55 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 60. The size of Spool 60 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 38) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 60 (Last Use) by way of an all-rows scan into Spool 17 (all_amps), which is built locally on the AMPs. The size of Spool 17 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 65 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 65 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 39) We do an all-AMPs JOIN step from Spool 65 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 65 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO3)"). The result goes into Spool 67 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 67 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 40) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 67 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 67 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 63 (all_amps), which is built locally on the AMPs. The size of Spool 63 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 41) We do an all-AMPs SUM step to aggregate from Spool 63 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 68. The size of Spool 68 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 42) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 68 (Last Use) by way of an all-rows scan into Spool 16 (all_amps), which is built locally on the AMPs. The size of Spool 16 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 73 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 73 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 43) We do an all-AMPs JOIN step from Spool 73 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 73 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO4)"). The result goes into Spool 75 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 75 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 44) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 75 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 75 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 71 (all_amps), which is built locally on the AMPs. The size of Spool 71 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 45) We do an all-AMPs SUM step to aggregate from Spool 71 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 76. The size of Spool 76 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 46) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 76 (Last Use) by way of an all-rows scan into Spool 15 (all_amps), which is built locally on the AMPs. The size of Spool 15 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 81 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 81 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 47) We do an all-AMPs JOIN step from Spool 81 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 81 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO5)"). The result goes into Spool 83 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 83 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 48) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 83 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 83 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 79 (all_amps), which is built locally on the AMPs. The size of Spool 79 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 49) We do an all-AMPs SUM step to aggregate from Spool 79 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 84. The size of Spool 84 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 50) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 84 (Last Use) by way of an all-rows scan into Spool 14 (all_amps), which is built locally on the AMPs. The size of Spool 14 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 89 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 89 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 51) We do an all-AMPs JOIN step from Spool 89 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 89 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO6)"). The result goes into Spool 91 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 91 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 52) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 91 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 91 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 87 (all_amps), which is built locally on the AMPs. The size of Spool 87 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 53) We do an all-AMPs SUM step to aggregate from Spool 87 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 92. The size of Spool 92 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 54) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 92 (Last Use) by way of an all-rows scan into Spool 13 (all_amps), which is built locally on the AMPs. The size of Spool 13 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 97 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 97 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 55) We do an all-AMPs JOIN step from Spool 97 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 97 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO7)"). The result goes into Spool 99 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 99 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 56) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 99 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 99 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 95 (all_amps), which is built locally on the AMPs. The size of Spool 95 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 57) We do an all-AMPs SUM step to aggregate from Spool 95 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 100. The size of Spool 100 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 58) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 100 (Last Use) by way of an all-rows scan into Spool 12 (all_amps), which is built locally on the AMPs. The size of Spool 12 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 105 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 105 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 59) We do an all-AMPs JOIN step from Spool 105 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 105 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO8)"). The result goes into Spool 107 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 107 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 60) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 107 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 107 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 103 (all_amps), which is built locally on the AMPs. The size of Spool 103 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 61) We do an all-AMPs SUM step to aggregate from Spool 103 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 108. The size of Spool 108 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 62) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 108 (Last Use) by way of an all-rows scan into Spool 11 (all_amps), which is built locally on the AMPs. The size of Spool 11 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 113 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 113 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 63) We do an all-AMPs JOIN step from Spool 113 (Last Use) by way of an all-rows scan, which is joined to Spool 26 by way of an all-rows scan. Spool 113 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_GGMESMENO9)"). The result goes into Spool 115 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 115 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 64) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 115 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 115 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 111 (all_amps), which is built locally on the AMPs. The size of Spool 111 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 65) We do an all-AMPs SUM step to aggregate from Spool 111 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 116. The size of Spool 116 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 66) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 116 (Last Use) by way of an all-rows scan into Spool 10 (all_amps), which is built locally on the AMPs. The size of Spool 10 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 120 (all_amps), which is duplicated on all AMPs. The size of Spool 120 is estimated with high confidence to be 588 rows. The estimated time for this step is 0.03 seconds. 67) We do an all-AMPs JOIN step from Spool 120 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 120 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT1"). The result goes into Spool 122 (all_amps), which is built locally on the AMPs. The size of Spool 122 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 0.80 seconds. 68) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 122 (Last Use) by way of an all-rows scan. Spool 24 and Spool 122 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 123 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 123 by row hash. The size of Spool 123 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.07 seconds. 69) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 123 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 123 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 119 (all_amps), which is built locally on the AMPs. The size of Spool 119 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.04 seconds. 70) We do an all-AMPs SUM step to aggregate from Spool 119 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 124. The size of Spool 124 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 71) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 124 (Last Use) by way of an all-rows scan into Spool 9 (all_amps), which is built locally on the AMPs. The size of Spool 9 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 128 (all_amps), which is duplicated on all AMPs. The size of Spool 128 is estimated with high confidence to be 588 rows. The estimated time for this step is 0.03 seconds. 72) We do an all-AMPs JOIN step from Spool 128 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 128 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT2"). The result goes into Spool 130 (all_amps), which is built locally on the AMPs. The size of Spool 130 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 0.80 seconds. 73) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 130 (Last Use) by way of an all-rows scan. Spool 24 and Spool 130 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 131 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 131 by row hash. The size of Spool 131 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.07 seconds. 74) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 131 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 131 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 127 (all_amps), which is built locally on the AMPs. The size of Spool 127 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.04 seconds. 75) We do an all-AMPs SUM step to aggregate from Spool 127 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 132. The size of Spool 132 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 76) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 132 (Last Use) by way of an all-rows scan into Spool 8 (all_amps), which is built locally on the AMPs. The size of Spool 8 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 136 (all_amps), which is duplicated on all AMPs. The size of Spool 136 is estimated with high confidence to be 588 rows. The estimated time for this step is 0.03 seconds. 77) We do an all-AMPs JOIN step from Spool 136 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 136 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT3"). The result goes into Spool 138 (all_amps), which is built locally on the AMPs. The size of Spool 138 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 0.80 seconds. 78) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 138 (Last Use) by way of an all-rows scan. Spool 24 and Spool 138 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 139 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 139 by row hash. The size of Spool 139 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.07 seconds. 79) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 139 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 139 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 135 (all_amps), which is built locally on the AMPs. The size of Spool 135 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.04 seconds. 80) We do an all-AMPs SUM step to aggregate from Spool 135 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 140. The size of Spool 140 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 81) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 140 (Last Use) by way of an all-rows scan into Spool 7 (all_amps), which is built locally on the AMPs. The size of Spool 7 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 144 (all_amps), which is duplicated on all AMPs. The size of Spool 144 is estimated with high confidence to be 588 rows. The estimated time for this step is 0.03 seconds. 82) We do an all-AMPs JOIN step from Spool 144 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 144 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT4"). The result goes into Spool 146 (all_amps), which is built locally on the AMPs. The size of Spool 146 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 0.80 seconds. 83) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 146 (Last Use) by way of an all-rows scan. Spool 24 and Spool 146 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 147 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 147 by row hash. The size of Spool 147 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.07 seconds. 84) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 147 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 147 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 143 (all_amps), which is built locally on the AMPs. The size of Spool 143 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.04 seconds. 85) We do an all-AMPs SUM step to aggregate from Spool 143 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 148. The size of Spool 148 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 86) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 148 (Last Use) by way of an all-rows scan into Spool 6 (all_amps), which is built locally on the AMPs. The size of Spool 6 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 152 (all_amps), which is duplicated on all AMPs. The size of Spool 152 is estimated with high confidence to be 588 rows. The estimated time for this step is 0.03 seconds. 87) We do an all-AMPs JOIN step from Spool 152 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 152 and DOL_DM.a11 are joined using a product join, with a join condition of ( "DOL_DM.a11.ID_GIORNO = DT_GGSETT5"). The result goes into Spool 154 (all_amps), which is built locally on the AMPs. The size of Spool 154 is estimated with low confidence to be 91,280 rows. The estimated time for this step is 0.80 seconds. 88) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to Spool 154 (Last Use) by way of an all-rows scan. Spool 24 and Spool 154 are joined using a product join, with a join condition of ("ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 155 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 155 by row hash. The size of Spool 155 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.07 seconds. 89) We do an all-AMPs JOIN step from DOL_DM.a13 by way of a RowHash match scan with no residual conditions, which is joined to Spool 155 (Last Use) by way of a RowHash match scan. DOL_DM.a13 and Spool 155 are joined using a merge join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 151 (all_amps), which is built locally on the AMPs. The size of Spool 151 is estimated with low confidence to be 49,151 rows. The estimated time for this step is 0.04 seconds. 90) We do an all-AMPs SUM step to aggregate from Spool 151 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 156. The size of Spool 156 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.07 seconds. 91) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 156 (Last Use) by way of an all-rows scan into Spool 5 (all_amps), which is built locally on the AMPs. The size of Spool 5 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'"), which is joined to Spool 24 by way of an all-rows scan. DOL_DM.a12 and Spool 24 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 161 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 161 is estimated with high confidence to be 217 rows. The estimated time for this step is 0.04 seconds. 92) We do an all-AMPs JOIN step from Spool 161 (Last Use) by way of an all-rows scan, which is joined to Spool 26 (Last Use) by way of an all-rows scan. Spool 161 and Spool 26 are joined using a product join, with a join condition of ("(ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND (ID_GIORNO = DT_ROLLGGMESCOR)"). The result goes into Spool 163 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 163 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.41 seconds. 93) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 163 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 163 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 159 (all_amps), which is built locally on the AMPs. The size of Spool 159 is estimated with low confidence to be 220,318 rows. The estimated time for this step is 0.11 seconds. 94) We do an all-AMPs SUM step to aggregate from Spool 159 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 164. The size of Spool 164 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.09 seconds. 95) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 164 (Last Use) by way of an all-rows scan into Spool 4 (all_amps), which is built locally on the AMPs. The size of Spool 4 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 169 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 169 is estimated with high confidence to be 129 rows. The estimated time for this step is 0.03 seconds. 3) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a11 are joined using a product join, with a join condition of ("DOL_DM.a11.ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 170 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 170 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 1.46 seconds. 96) We do an all-AMPs JOIN step from Spool 169 (Last Use) by way of an all-rows scan, which is joined to Spool 170 (Last Use) by way of an all-rows scan. Spool 169 and Spool 170 are joined using a product join, with a join condition of ("ID_GIORNO = DT_ROLLGGACO"). The result goes into Spool 171 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 171 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 0.87 seconds. 97) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 171 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 171 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 167 (all_amps), which is built locally on the AMPs. The size of Spool 167 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 0.38 seconds. 98) We do an all-AMPs SUM step to aggregate from Spool 167 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 172. The size of Spool 172 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.15 seconds. 99) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 172 (Last Use) by way of an all-rows scan into Spool 3 (all_amps), which is built locally on the AMPs. The size of Spool 3 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 177 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 177 is estimated with high confidence to be 129 rows. The estimated time for this step is 0.03 seconds. 3) We do an all-AMPs JOIN step from Spool 24 by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a11 are joined using a product join, with a join condition of ("DOL_DM.a11.ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 178 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 178 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 1.38 seconds. 100) We do an all-AMPs JOIN step from Spool 177 (Last Use) by way of an all-rows scan, which is joined to Spool 178 (Last Use) by way of an all-rows scan. Spool 177 and Spool 178 are joined using a product join, with a join condition of ("ID_GIORNO = DT_ROLLGGAPR"). The result goes into Spool 179 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 179 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 0.73 seconds. 101) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 179 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 179 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 175 (all_amps), which is built locally on the AMPs. The size of Spool 175 is estimated with low confidence to be 905,777 rows. The estimated time for this step is 0.34 seconds. 102) We do an all-AMPs SUM step to aggregate from Spool 175 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 180. The size of Spool 180 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.14 seconds. 103) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 180 (Last Use) by way of an all-rows scan into Spool 2 (all_amps), which is built locally on the AMPs. The size of Spool 2 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs JOIN step from Spool 24 (Last Use) by way of an all-rows scan, which is joined to DOL_DM.a11 by way of an all-rows scan with no residual conditions. Spool 24 and DOL_DM.a11 are joined using a product join, with a join condition of ("DOL_DM.a11.ID_SOGLIATOLLER = ID_SOGLIATOLLER"). The result goes into Spool 185 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 185 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 1.69 seconds. 3) We do an all-AMPs RETRIEVE step from DOL_DM.a12 by way of an all-rows scan with a condition of ("DOL_DM.a12.ID_GIORNO = DATE '2007-05-09'") into Spool 186 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 186 is estimated with high confidence to be 365 rows. The estimated time for this step is 0.04 seconds. 104) We do an all-AMPs JOIN step from DOL_DM.a13 by way of an all-rows scan with no residual conditions, which is joined to Spool 185 (Last Use) by way of an all-rows scan. DOL_DM.a13 and Spool 185 are joined using a single partition hash join, with a join condition of ("ID_ITINER = DOL_DM.a13.ID_ITINER"). The result goes into Spool 187 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 187 is estimated with low confidence to be 1,256,852 rows. The estimated time for this step is 0.83 seconds. 105) We do an all-AMPs JOIN step from Spool 186 (Last Use) by way of an all-rows scan, which is joined to Spool 187 (Last Use) by way of an all-rows scan. Spool 186 and Spool 187 are joined using a product join, with a join condition of ("ID_GIORNO = DT_TOTGGAPR"). The result goes into Spool 183 (all_amps), which is built locally on the AMPs. The size of Spool 183 is estimated with low confidence to be 2,562,855 rows. The estimated time for this step is 0.78 seconds. 106) We do an all-AMPs SUM step to aggregate from Spool 183 (Last Use) by way of an all-rows scan, and the grouping identifier in field 1. Aggregate Intermediate Results are computed globally, then placed in Spool 188. The size of Spool 188 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.29 seconds. 107) We execute the following steps in parallel. 1) We do an all-AMPs RETRIEVE step from Spool 188 (Last Use) by way of an all-rows scan into Spool 1 (all_amps), which is built locally on the AMPs. The size of Spool 1 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a124 by way of an all-rows scan with no residual conditions into Spool 191 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 191 by row hash. The size of Spool 191 is estimated with high confidence to be 24 rows. The estimated time for this step is 0.01 seconds. 3) We do an all-AMPs RETRIEVE step from DOL_DM.a122 by way of an all-rows scan with no residual conditions into Spool 192 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 192 by row hash. The size of Spool 192 is estimated with high confidence to be 663 rows. The estimated time for this step is 0.03 seconds. 108) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from DOL_DM.a127 by way of a RowHash match scan with no residual conditions, which is joined to Spool 191 (Last Use) by way of a RowHash match scan. DOL_DM.a127 and Spool 191 are joined using a merge join, with a join condition of ("ID_TIPOSERVIZIO = DOL_DM.a127.ID_TIPOSERVIZIO"). The result goes into Spool 193 (all_amps), which is duplicated on all AMPs. The size of Spool 193 is estimated with low confidence to be 2,016 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from DOL_DM.a126 by way of an all-rows scan with no residual conditions into Spool 194 (all_amps), which is duplicated on all AMPs. The size of Spool 194 is estimated with high confidence to be 168 rows. The estimated time for this step is 0.03 seconds. 109) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from DOL_DM.a128 by way of an all-rows scan with no residual conditions, which is joined to Spool 194 (Last Use) by way of an all-rows scan. DOL_DM.a128 and Spool 194 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 195 (all_amps), which is duplicated on all AMPs. The size of Spool 195 is estimated with high confidence to be 504 rows. The estimated time for this step is 0.02 seconds. 2) We do an all-AMPs JOIN step from DOL_DM.a123 by way of a RowHash match scan with no residual conditions, which is joined to Spool 192 (Last Use) by way of a RowHash match scan. DOL_DM.a123 and Spool 192 are joined using a merge join, with a join condition of ("ID_POLO = DOL_DM.a123.ID_POLO"). The result goes into Spool 196 (all_amps), which is built locally on the AMPs. The size of Spool 196 is estimated with low confidence to be 663 rows. The estimated time for this step is 0.01 seconds. 3) We do an all-AMPs RETRIEVE step from Spool 21 (Last Use) by way of an all-rows scan into Spool 197 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 197 by row hash. The size of Spool 197 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 4) We do an all-AMPs RETRIEVE step from Spool 20 (Last Use) by way of an all-rows scan into Spool 198 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 198 by row hash. The size of Spool 198 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 5) We do an all-AMPs RETRIEVE step from Spool 19 (Last Use) by way of an all-rows scan into Spool 199 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 199 by row hash. The size of Spool 199 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 110) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 197 (Last Use) by way of a RowHash match scan, which is joined to Spool 198 (Last Use) by way of a RowHash match scan. Spool 197 and Spool 198 are full outer joined using a merge join, with a join condition of ("(ID_TIPOPUNTUAL = ID_TIPOPUNTUAL) AND ((ID_SOGLIATOLLER = ID_SOGLIATOLLER) AND ((ID_MODGESTIONE = ID_MODGESTIONE) AND ((ID_FASCIAORARIA = ID_FASCIAORARIA) AND (ID_CMP = ID_CMP ))))"). The result goes into Spool 200 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 200 by row hash. The size of Spool 200 is estimated with no confidence to be 1,105 rows. The estimated time for this step is 0.02 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 18 (Last Use) by way of an all-rows scan into Spool 203 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 203 by row hash. The size of Spool 203 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 111) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 199 (Last Use) by way of a RowHash match scan, which is joined to Spool 200 (Last Use) by way of a RowHash match scan. Spool 199 and Spool 200 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 204 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 204 by row hash. The size of Spool 204 is estimated with no confidence to be 2,389 rows. The estimated time for this step is 0.03 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 17 (Last Use) by way of an all-rows scan into Spool 207 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 207 by row hash. The size of Spool 207 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 112) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 203 (Last Use) by way of a RowHash match scan, which is joined to Spool 204 (Last Use) by way of a RowHash match scan. Spool 203 and Spool 204 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 208 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 208 by row hash. The size of Spool 208 is estimated with no confidence to be 4,442 rows. The estimated time for this step is 0.04 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 16 (Last Use) by way of an all-rows scan into Spool 211 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 211 by row hash. The size of Spool 211 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 113) We do an all-AMPs JOIN step from Spool 207 (Last Use) by way of a RowHash match scan, which is joined to Spool 208 (Last Use) by way of a RowHash match scan. Spool 207 and Spool 208 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASEWHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 212 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 212 by row hash. The size of Spool 212 is estimated with no confidence to be 7,382 rows. The estimated time for this step is 0.05 seconds. 114) We do an all-AMPs JOIN step from Spool 195 (Last Use) by way of an all-rows scan, which is joined to Spool 196 (Last Use) by way of an all-rows scan. Spool 195 and Spool 196 are joined using a single partition hash join, with a join condition of ("ID_NAZION = ID_NAZION"). The result goes into Spool 215 (all_amps), which is built locally on the AMPs. The size of Spool 215 is estimated with low confidence to be 1,326 rows. The estimated time for this step is 0.03 seconds. 115) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from DOL_DM.a125 by way of an all-rows scan with no residual conditions, which is joined to Spool 193 (Last Use) by way of an all-rows scan. DOL_DM.a125 and Spool 193 are joined using a product join, with a join condition of ("(1=1)"). The result goes into Spool 216 (all_amps), which is duplicated on all AMPs. The size of Spool 216 is estimated with low confidence to be 4,032 rows. The estimated time for this step is 0.05 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 15 (Last Use) by way of an all-rows scan into Spool 217 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 217 by row hash. The size of Spool 217 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 3) We do an all-AMPs JOIN step from Spool 211 (Last Use) by way of a RowHash match scan, which is joined to Spool 212 (Last Use) by way of a RowHash match scan. Spool 211 and Spool 212 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN(NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 218 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 218 by row hash. The size of Spool 218 is estimated with no confidence to be 11,305 rows. The estimated time for this step is 0.05 seconds. 4) We do an all-AMPs RETRIEVE step from Spool 14 (Last Use) by way of an all-rows scan into Spool 221 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 221 by row hash. The size of Spool 221 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 116) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 217 (Last Use) by way of a RowHash match scan, which is joined to Spool 218 (Last Use) by way of a RowHash match scan. Spool 217 and Spool 218 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN(NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 222 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 222 by row hash. The size of Spool 222 is estimated with no confidence to be 16,275 rows. The estimated time for this step is 0.06 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 13 (Last Use) by way of an all-rows scan into Spool 225 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 225 by row hash. The size of Spool 225 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 117) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 221 (Last Use) by way of a RowHash match scan, which is joined to Spool 222 (Last Use) by way of a RowHash match scan. Spool 221 and Spool 222 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT(ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 226 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 226 by row hash. The size of Spool 226 is estimated with no confidence to be 22,326 rows. The estimated time for this step is 0.11 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 12 (Last Use) by way of an all-rows scan into Spool 229 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 229 by row hash. The size of Spool 229 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 118) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 225 (Last Use) by way of a RowHash match scan, which is joined to Spool 226 (Last Use) by way of a RowHash match scan. Spool 225 and Spool 226 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT(ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 230 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 230 by row hash. The size of Spool 230 is estimated with no confidence to be 29,491 rows. The estimated time for this step is 0.12 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 11 (Last Use) by way of an all-rows scan into Spool 233 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 233 by row hash. The size of Spool 233 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 119) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 229 (Last Use) by way of a RowHash match scan, which is joined to Spool 230 (Last Use) by way of a RowHash match scan. Spool 229 and Spool 230 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT(ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 234 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 234 by row hash. The size of Spool 234 is estimated with no confidence to be 37,804 rows. The estimated time for this step is 0.17 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 10 (Last Use) by way of an all-rows scan into Spool 237 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 237 by row hash. The size of Spool 237 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 120) We do an all-AMPs JOIN step from Spool 233 (Last Use) by way of a RowHash match scan, which is joined to Spool 234 (Last Use) by way of a RowHash match scan. Spool 233 and Spool 234 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 238 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 238 by row hash. The size of Spool 238 is estimated with no confidence to be 47,275 rows. The estimated time for this step is 0.23 seconds. 121) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 237 (Last Use) by way of a RowHash match scan, which is joined to Spool 238 (Last Use) by way of a RowHash match scan. Spool 237 and Spool 238 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 241 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 241 is estimated with no confidence to be 57,912 rows. The estimated time for this step is 0.25 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 9 (Last Use) by way of an all-rows scan into Spool 244 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 244 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 3) We do an all-AMPs RETRIEVE step from Spool 8 (Last Use) by way of an all-rows scan into Spool 245 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 245 by row hash. The size of Spool 245 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 122) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 241 (Last Use) by way of an all-rows scan, which is joined to Spool 244 (Last Use) by way of an all-rows scan. Spool 241 and Spool 244 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP))))"). The result goes into Spool 246 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 246 by row hash. The size of Spool 246 is estimated with no confidence to be 69,738 rows. The estimated time for this step is 0.41 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 7 (Last Use) by way of an all-rows scan into Spool 249 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 249 by row hash. The size of Spool 249 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.01 seconds. 123) We do an all-AMPs JOIN step from Spool 245 (Last Use) by way of a RowHash match scan, which is joined to Spool 246 (Last Use) by way of a RowHash match scan. Spool 245 and Spool 246 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL )END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 250 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 250 by row hash. The size of Spool 250 is estimated with no confidence to be 82,762 rows. The estimated time for this step is 0.47 seconds. 124) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 249 (Last Use) by way of a RowHash match scan, which is joined to Spool 250 (Last Use) by way of a RowHash match scan. Spool 249 and Spool 250 are full outer joined using a merge join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 253 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 253 is estimated with no confidence to be 96,990 rows. The estimated time for this step is 0.45 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 6 (Last Use) by way of an all-rows scan into Spool 256 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 256 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 125) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 253 (Last Use) by way of an all-rows scan, which is joined to Spool 256 (Last Use) by way of an all-rows scan. Spool 253 and Spool 256 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE )END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 257 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 257 is estimated with no confidence to be 112,428 rows. The estimated time for this step is 0.66 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 5 (Last Use) by way of an all-rows scan into Spool 260 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 260 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 126) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 257 (Last Use) by way of an all-rows scan, which is joined to Spool 260 (Last Use) by way of an all-rows scan. Spool 257 and Spool 260 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 261 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 261 is estimated with no confidence to be 129,086 rows. The estimated time for this step is 0.79 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 4 (Last Use) by way of an all-rows scan into Spool 264 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 264 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 127) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 261 (Last Use) by way of an all-rows scan, which is joined to Spool 264 (Last Use) by way of an all-rows scan. Spool 261 and Spool 264 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL )END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) ELSE (ID_FASCIAORARIA) END ))= ID_FASCIAORARIA) AND ((( CASE WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) WHEN (NOT (ID_CMP IS NULL )) THEN (ID_CMP) ELSE (ID_CMP) END ))= ID_CMP ))))"). The result goes into Spool 265 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 265 is estimated with no confidence to be 146,966 rows. The estimated time for this step is 0.96 seconds. 2) We do an all-AMPs RETRIEVE step from Spool 3 (Last Use) by way of an all-rows scan into Spool 268 (all_amps), which is redistributed by hash code to all AMPs. The size of Spool 268 is estimated with low confidence to be 468 rows. The estimated time for this step is 0.03 seconds. 128) We execute the following steps in parallel. 1) We do an all-AMPs JOIN step from Spool 265 (Last Use) by way of an all-rows scan, which is joined to Spool 268 (Last Use) by way of an all-rows scan. Spool 265 and Spool 268 are full outer joined using a product join, with a join condition of ("((( CASE WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) WHEN (NOT (ID_TIPOPUNTUAL IS NULL )) THEN (ID_TIPOPUNTUAL) ELSE (ID_TIPOPUNTUAL) END ))= ID_TIPOPUNTUAL) AND (((( CASE WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) WHEN (NOT (ID_SOGLIATOLLER IS NULL )) THEN (ID_SOGLIATOLLER) ELSE (ID_SOGLIATOLLER) END ))= ID_SOGLIATOLLER) AND (((( CASE WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) WHEN (NOT (ID_MODGESTIONE IS NULL )) THEN (ID_MODGESTIONE) ELSE (ID_MODGESTIONE) END ))= ID_MODGESTIONE) AND (((( CASE WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS NULL )) THEN (ID_FASCIAORARIA) WHEN (NOT (ID_FASCIAORARIA IS********************************************************************************+* Query**********************************************************************************select a122.ID_POLO ID_POLO, a123.DS_POLO DS_POLO, coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP, pa117.ID_CMP, pa118.ID_CMP, pa119.ID_CMP, pa120.ID_CMP, pa121.ID_CMP) ID_CMP, a122.DS_CMP DS_CMP, a123.ID_NAZION ID_NAZION, a128.DS_NAZION DS_NAZION, coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL, pa117.ID_TIPOPUNTUAL, pa118.ID_TIPOPUNTUAL, pa119.ID_TIPOPUNTUAL, pa120.ID_TIPOPUNTUAL, pa121.ID_TIPOPUNTUAL) ID_TIPOPUNTUAL, a126.DS_TIPOPUNTUAL DS_TIPOPUNTUAL, coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER, pa116.ID_SOGLIATOLLER, pa117.ID_SOGLIATOLLER, pa118.ID_SOGLIATOLLER, pa119.ID_SOGLIATOLLER, pa120.ID_SOGLIATOLLER, pa121.ID_SOGLIATOLLER) ID_SOGLIATOLLER, coalesce(pa11.DS_SOGLIATOLLER, pa12.DS_SOGLIATOLLER, pa13.DS_SOGLIATOLLER, pa14.DS_SOGLIATOLLER, pa15.DS_SOGLIATOLLER, pa16.DS_SOGLIATOLLER, pa17.DS_SOGLIATOLLER, pa18.DS_SOGLIATOLLER, pa19.DS_SOGLIATOLLER, pa110.DS_SOGLIATOLLER, pa111.DS_SOGLIATOLLER, pa112.DS_SOGLIATOLLER, pa113.DS_SOGLIATOLLER, pa114.DS_SOGLIATOLLER, pa115.DS_SOGLIATOLLER, pa116.DS_SOGLIATOLLER, pa117.DS_SOGLIATOLLER, pa118.DS_SOGLIATOLLER, pa119.DS_SOGLIATOLLER, pa120.DS_SOGLIATOLLER, pa121.DS_SOGLIATOLLER) DS_SOGLIATOLLER, coalesce(pa11.CD_SOGLIATOLLER, pa12.CD_SOGLIATOLLER, pa13.CD_SOGLIATOLLER, pa14.CD_SOGLIATOLLER, pa15.CD_SOGLIATOLLER, pa16.CD_SOGLIATOLLER, pa17.CD_SOGLIATOLLER, pa18.CD_SOGLIATOLLER, pa19.CD_SOGLIATOLLER, pa110.CD_SOGLIATOLLER, pa111.CD_SOGLIATOLLER, pa112.CD_SOGLIATOLLER, pa113.CD_SOGLIATOLLER, pa114.CD_SOGLIATOLLER, pa115.CD_SOGLIATOLLER, pa116.CD_SOGLIATOLLER, pa117.CD_SOGLIATOLLER, pa118.CD_SOGLIATOLLER, pa119.CD_SOGLIATOLLER, pa120.CD_SOGLIATOLLER, pa121.CD_SOGLIATOLLER) CD_SOGLIATOLLER, coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA, pa117.ID_FASCIAORARIA, pa118.ID_FASCIAORARIA, pa119.ID_FASCIAORARIA, pa120.ID_FASCIAORARIA, pa121.ID_FASCIAORARIA) ID_FASCIAORARIA, a124.DS_FASCIAORARIA DS_FASCIAORARIA, a124.ID_TIPOSERVIZIO ID_TIPOSERVIZIO, a127.DS_TIPOSERVIZIO DS_TIPOSERVIZIO, coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE, pa117.ID_MODGESTIONE, pa118.ID_MODGESTIONE, pa119.ID_MODGESTIONE, pa120.ID_MODGESTIONE, pa121.ID_MODGESTIONE) ID_MODGESTIONE, a125.DS_MODGESTIONE DS_MODGESTIONE, pa11.WJXBFS1 WJXBFS1, pa12.WJXBFS1 WJXBFS2, pa13.WJXBFS1 WJXBFS3, pa14.WJXBFS1 WJXBFS4, pa15.WJXBFS1 WJXBFS5, pa16.WJXBFS1 WJXBFS6, pa17.WJXBFS1 WJXBFS7, pa18.WJXBFS1 WJXBFS8, pa19.WJXBFS1 WJXBFS9, pa110.WJXBFS1 WJXBFSa, pa111.WJXBFS1 WJXBFSb, pa112.WJXBFS1 WJXBFSc, pa11.WJXBFS2 WJXBFSd, pa12.WJXBFS2 WJXBFSe, pa13.WJXBFS2 WJXBFSf, pa14.WJXBFS2 WJXBFS10, pa15.WJXBFS2 WJXBFS11, pa16.WJXBFS2 WJXBFS12, pa17.WJXBFS2 WJXBFS13, pa18.WJXBFS2 WJXBFS14, pa19.WJXBFS2 WJXBFS15, pa110.WJXBFS2 WJXBFS16, pa111.WJXBFS2 WJXBFS17, pa112.WJXBFS2 WJXBFS18, pa11.WJXBFS3 WJXBFS19, pa12.WJXBFS3 WJXBFS1a, pa13.WJXBFS3 WJXBFS1b, pa14.WJXBFS3 WJXBFS1c, pa15.WJXBFS3 WJXBFS1d, pa16.WJXBFS3 WJXBFS1e, pa17.WJXBFS3 WJXBFS1f, pa18.WJXBFS3 WJXBFS20, pa19.WJXBFS3 WJXBFS21, pa110.WJXBFS3 WJXBFS22, pa111.WJXBFS3 WJXBFS23, pa112.WJXBFS3 WJXBFS24, pa113.WJXBFS1 WJXBFS25, pa114.WJXBFS1 WJXBFS26, pa115.WJXBFS1 WJXBFS27, pa116.WJXBFS1 WJXBFS28, pa117.WJXBFS1 WJXBFS29, pa113.WJXBFS2 WJXBFS2a, pa114.WJXBFS2 WJXBFS2b, pa115.WJXBFS2 WJXBFS2c, pa116.WJXBFS2 WJXBFS2d, pa117.WJXBFS2 WJXBFS2e, pa113.WJXBFS3 WJXBFS2f, pa114.WJXBFS3 WJXBFS30, pa115.WJXBFS3 WJXBFS31, pa116.WJXBFS3 WJXBFS32, pa117.WJXBFS3 WJXBFS33, pa118.WJXBFS1 WJXBFS34, pa118.WJXBFS2 WJXBFS35, pa118.WJXBFS3 WJXBFS36, pa119.WJXBFS1 WJXBFS37, pa119.WJXBFS2 WJXBFS38, pa119.WJXBFS3 WJXBFS39, pa120.WJXBFS1 WJXBFS3a, pa120.WJXBFS2 WJXBFS3b, pa120.WJXBFS3 WJXBFS3c, pa119.WJXBFS4 WJXBFS3d, pa119.WJXBFS5 WJXBFS3e, pa119.WJXBFS6 WJXBFS3f, pa121.WJXBFS1 WJXBFS40, pa121.WJXBFS2 WJXBFS41, pa121.WJXBFS3 WJXBFS42from (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO1) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa11 full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO10) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa12 on (pa11.ID_CMP = pa12.ID_CMP and pa11.ID_FASCIAORARIA = pa12.ID_FASCIAORARIA and pa11.ID_MODGESTIONE = pa12.ID_MODGESTIONE and pa11.ID_SOGLIATOLLER = pa12.ID_SOGLIATOLLER and pa11.ID_TIPOPUNTUAL = pa12.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO11) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa13 on (coalesce(pa11.ID_CMP, pa12.ID_CMP) = pa13.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA) = pa13.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE) = pa13.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER) = pa13.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL) = pa13.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO12) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa14 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP) = pa14.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA) = pa14.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE) = pa14.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER) = pa14.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL) = pa14.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO2) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa15 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP) = pa15.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA) = pa15.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE) = pa15.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER) = pa15.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL) = pa15.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO3) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa16 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP) = pa16.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA) = pa16.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE) = pa16.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER) = pa16.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL) = pa16.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO4) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa17 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP) = pa17.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA) = pa17.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE) = pa17.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER) = pa17.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL) = pa17.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO5) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa18 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP) = pa18.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA) = pa18.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE) = pa18.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER) = pa18.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL) = pa18.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO6) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa19 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP) = pa19.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA) = pa19.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE) = pa19.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER) = pa19.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL) = pa19.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO7) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa110 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP) = pa110.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA) = pa110.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE) = pa110.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER) = pa110.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL) = pa110.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO8) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa111 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP) = pa111.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA) = pa111.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE) = pa111.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER) = pa111.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL) = pa111.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_GGMESMENO9) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa112 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP) = pa112.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA) = pa112.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE) = pa112.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER) = pa112.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL) = pa112.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFSTRA) WJXBFS1, sum(a11.NR_TRASPEFFORD) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGSETT a12 on (a11.ID_GIORNO = a12.DT_GGSETT1) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa113 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP) = pa113.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA) = pa113.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE) = pa113.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER) = pa113.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL) = pa113.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFSTRA) WJXBFS1, sum(a11.NR_TRASPEFFORD) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGSETT a12 on (a11.ID_GIORNO = a12.DT_GGSETT2) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa114 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP) = pa114.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA) = pa114.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE) = pa114.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER) = pa114.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL) = pa114.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFSTRA) WJXBFS1, sum(a11.NR_TRASPEFFORD) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGSETT a12 on (a11.ID_GIORNO = a12.DT_GGSETT3) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa115 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP) = pa115.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA) = pa115.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE) = pa115.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER) = pa115.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL) = pa115.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFSTRA) WJXBFS1, sum(a11.NR_TRASPEFFORD) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGSETT a12 on (a11.ID_GIORNO = a12.DT_GGSETT4) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa116 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP) = pa116.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA) = pa116.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE) = pa116.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER) = pa116.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL) = pa116.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFSTRA) WJXBFS1, sum(a11.NR_TRASPEFFORD) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGSETT a12 on (a11.ID_GIORNO = a12.DT_GGSETT5) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa117 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP) = pa117.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA) = pa117.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE) = pa117.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER, pa116.ID_SOGLIATOLLER) = pa117.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL) = pa117.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_GGMESE a12 on (a11.ID_GIORNO = a12.DT_ROLLGGMESCOR) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa118 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP, pa117.ID_CMP) = pa118.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA, pa117.ID_FASCIAORARIA) = pa118.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE, pa117.ID_MODGESTIONE) = pa118.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER, pa116.ID_SOGLIATOLLER, pa117.ID_SOGLIATOLLER) = pa118.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL, pa117.ID_TIPOPUNTUAL) = pa118.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3, sum(a11.NR_TRASPIANORD) WJXBFS4, sum(a11.NR_TRASPIANSTRA) WJXBFS5, sum(a11.NR_TRASPEFFNPIA) WJXBFS6 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_RGACO a12 on (a11.ID_GIORNO = a12.DT_ROLLGGACO) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa119 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP, pa117.ID_CMP, pa118.ID_CMP) = pa119.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA, pa117.ID_FASCIAORARIA, pa118.ID_FASCIAORARIA) = pa119.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE, pa117.ID_MODGESTIONE, pa118.ID_MODGESTIONE) = pa119.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER, pa116.ID_SOGLIATOLLER, pa117.ID_SOGLIATOLLER, pa118.ID_SOGLIATOLLER) = pa119.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL, pa117.ID_TIPOPUNTUAL, pa118.ID_TIPOPUNTUAL) = pa119.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_RGAPR a12 on (a11.ID_GIORNO = a12.DT_ROLLGGAPR) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa120 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP, pa117.ID_CMP, pa118.ID_CMP, pa119.ID_CMP) = pa120.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA, pa117.ID_FASCIAORARIA, pa118.ID_FASCIAORARIA, pa119.ID_FASCIAORARIA) = pa120.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE, pa117.ID_MODGESTIONE, pa118.ID_MODGESTIONE, pa119.ID_MODGESTIONE) = pa120.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER, pa116.ID_SOGLIATOLLER, pa117.ID_SOGLIATOLLER, pa118.ID_SOGLIATOLLER, pa119.ID_SOGLIATOLLER) = pa120.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL, pa117.ID_TIPOPUNTUAL, pa118.ID_TIPOPUNTUAL, pa119.ID_TIPOPUNTUAL) = pa120.ID_TIPOPUNTUAL) full outer join (select a11.ID_TIPOPUNTUAL ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER ID_SOGLIATOLLER, max(a14.DS_SOGLIATOLLER) DS_SOGLIATOLLER, max(a14.CD_SOGLIATOLLER) CD_SOGLIATOLLER, a11.ID_MODGESTIONE ID_MODGESTIONE, a11.ID_FASCIAORARIA ID_FASCIAORARIA, a13.ID_CMP ID_CMP, sum(a11.NR_TRASPEFFORD) WJXBFS1, sum(a11.NR_TRASPEFFSTRA) WJXBFS2, sum(a11.NR_TRASPORARIO) WJXBFS3 from DOL_DM.DOL_FAT_TDD_PUNTUA a11 join DOL_DM.DOL_DIM_TDD_TGAPR a12 on (a11.ID_GIORNO = a12.DT_TOTGGAPR) join DOL_DM.DOL_DIM_TDD_ITINER a13 on (a11.ID_ITINER = a13.ID_ITINER) join DOL_DM.DOL_DIM_TDD_SOGLIE a14 on (a11.ID_SOGLIATOLLER = a14.ID_SOGLIATOLLER) where (a12.ID_GIORNO = DATE '2007-05-09' and a14.ID_TPRETE in (2)) group by a11.ID_TIPOPUNTUAL, a11.ID_SOGLIATOLLER, a11.ID_MODGESTIONE, a11.ID_FASCIAORARIA, a13.ID_CMP ) pa121 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP, pa117.ID_CMP, pa118.ID_CMP, pa119.ID_CMP, pa120.ID_CMP) = pa121.ID_CMP and coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA, pa117.ID_FASCIAORARIA, pa118.ID_FASCIAORARIA, pa119.ID_FASCIAORARIA, pa120.ID_FASCIAORARIA) = pa121.ID_FASCIAORARIA and coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE, pa117.ID_MODGESTIONE, pa118.ID_MODGESTIONE, pa119.ID_MODGESTIONE, pa120.ID_MODGESTIONE) = pa121.ID_MODGESTIONE and coalesce(pa11.ID_SOGLIATOLLER, pa12.ID_SOGLIATOLLER, pa13.ID_SOGLIATOLLER, pa14.ID_SOGLIATOLLER, pa15.ID_SOGLIATOLLER, pa16.ID_SOGLIATOLLER, pa17.ID_SOGLIATOLLER, pa18.ID_SOGLIATOLLER, pa19.ID_SOGLIATOLLER, pa110.ID_SOGLIATOLLER, pa111.ID_SOGLIATOLLER, pa112.ID_SOGLIATOLLER, pa113.ID_SOGLIATOLLER, pa114.ID_SOGLIATOLLER, pa115.ID_SOGLIATOLLER, pa116.ID_SOGLIATOLLER, pa117.ID_SOGLIATOLLER, pa118.ID_SOGLIATOLLER, pa119.ID_SOGLIATOLLER, pa120.ID_SOGLIATOLLER) = pa121.ID_SOGLIATOLLER and coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL, pa117.ID_TIPOPUNTUAL, pa118.ID_TIPOPUNTUAL, pa119.ID_TIPOPUNTUAL, pa120.ID_TIPOPUNTUAL) = pa121.ID_TIPOPUNTUAL) join DOL_DM.DOL_DIM_TDD_CMP a122 on (coalesce(pa11.ID_CMP, pa12.ID_CMP, pa13.ID_CMP, pa14.ID_CMP, pa15.ID_CMP, pa16.ID_CMP, pa17.ID_CMP, pa18.ID_CMP, pa19.ID_CMP, pa110.ID_CMP, pa111.ID_CMP, pa112.ID_CMP, pa113.ID_CMP, pa114.ID_CMP, pa115.ID_CMP, pa116.ID_CMP, pa117.ID_CMP, pa118.ID_CMP, pa119.ID_CMP, pa120.ID_CMP, pa121.ID_CMP) = a122.ID_CMP) join DOL_DM.DOL_DIM_TDD_POLO a123 on (a122.ID_POLO = a123.ID_POLO) join DOL_DM.DOL_DIM_TDD_FASCIA a124 on (coalesce(pa11.ID_FASCIAORARIA, pa12.ID_FASCIAORARIA, pa13.ID_FASCIAORARIA, pa14.ID_FASCIAORARIA, pa15.ID_FASCIAORARIA, pa16.ID_FASCIAORARIA, pa17.ID_FASCIAORARIA, pa18.ID_FASCIAORARIA, pa19.ID_FASCIAORARIA, pa110.ID_FASCIAORARIA, pa111.ID_FASCIAORARIA, pa112.ID_FASCIAORARIA, pa113.ID_FASCIAORARIA, pa114.ID_FASCIAORARIA, pa115.ID_FASCIAORARIA, pa116.ID_FASCIAORARIA, pa117.ID_FASCIAORARIA, pa118.ID_FASCIAORARIA, pa119.ID_FASCIAORARIA, pa120.ID_FASCIAORARIA, pa121.ID_FASCIAORARIA) = a124.ID_FASCIAORARIA) join DOL_DM.DOL_DIM_TDD_MODGES a125 on (coalesce(pa11.ID_MODGESTIONE, pa12.ID_MODGESTIONE, pa13.ID_MODGESTIONE, pa14.ID_MODGESTIONE, pa15.ID_MODGESTIONE, pa16.ID_MODGESTIONE, pa17.ID_MODGESTIONE, pa18.ID_MODGESTIONE, pa19.ID_MODGESTIONE, pa110.ID_MODGESTIONE, pa111.ID_MODGESTIONE, pa112.ID_MODGESTIONE, pa113.ID_MODGESTIONE, pa114.ID_MODGESTIONE, pa115.ID_MODGESTIONE, pa116.ID_MODGESTIONE, pa117.ID_MODGESTIONE, pa118.ID_MODGESTIONE, pa119.ID_MODGESTIONE, pa120.ID_MODGESTIONE, pa121.ID_MODGESTIONE) = a125.ID_MODGESTIONE) join DOL_DM.DOL_DIM_TDD_TPPUNT a126 on (coalesce(pa11.ID_TIPOPUNTUAL, pa12.ID_TIPOPUNTUAL, pa13.ID_TIPOPUNTUAL, pa14.ID_TIPOPUNTUAL, pa15.ID_TIPOPUNTUAL, pa16.ID_TIPOPUNTUAL, pa17.ID_TIPOPUNTUAL, pa18.ID_TIPOPUNTUAL, pa19.ID_TIPOPUNTUAL, pa110.ID_TIPOPUNTUAL, pa111.ID_TIPOPUNTUAL, pa112.ID_TIPOPUNTUAL, pa113.ID_TIPOPUNTUAL, pa114.ID_TIPOPUNTUAL, pa115.ID_TIPOPUNTUAL, pa116.ID_TIPOPUNTUAL, pa117.ID_TIPOPUNTUAL, pa118.ID_TIPOPUNTUAL, pa119.ID_TIPOPUNTUAL, pa120.ID_TIPOPUNTUAL, pa121.ID_TIPOPUNTUAL) = a126.ID_TIPOPUNTUAL) join DOL_DM.DOL_DIM_TDD_TPSERV a127 on (a124.ID_TIPOSERVIZIO = a127.ID_TIPOSERVIZIO) join DOL_DM.DOL_DIM_TDD_NAZION a128 on (a123.ID_NAZION = a128.ID_NAZION)************************************************************* skew factor summary*************************************************************** TABLE ROWS SKEW test sKEW prodTPRETE 3 45 32TPSERV 36 18 22FASCIA 24 23 25SOGLIE 13 20 28MODGES 2 31 33TPPUNT 2 31 33ITINER 16,194 6 13CMP 663 19 17POLO 34 11 23NAZION 3 30 32GIORNO 1,461 25 17TGAPR 266,450 2 2RGAPR 133,590 2 3RGACO 133,590 2 3GGSETT 5,110 10 17GGSTCO 2,915 16 15GGMESE 22,630 4 11PUNTUA 2,334,152 1 1

Barry-1604 176 posts Joined 07/05
21 May 2007

When you test your queries for performance, you'll want to measure the CPU and IO of your queries in addition to the elapsed time. The CPU and IO is available in the query log (if you have query logging on and set to capture at the query level), or it is available in "dbc.ampusage". Elapsed time can vary based on how busy the machine is at the time, whereas CPU and IO will not. However, unless you have the same hardware on both your Test and Production machines, you will not be able to make comparisons between the two platforms. All that being said, you are doing a lot in this query. There are 128 steps in your explain plan. Are you not happy with the 9-10 second response time?Without getting too much into the specifics of your query (because it would take a while!), it looks like you are doing a very similar join over and over again (in each of the derived tables) and then doing full outer joins to join all of these results together. I believe that 3 of the tables that you are using in the derived tables are always the same (all, a13, and a14). So, my question would be, could you join all of the "a12" tables together into a big derived table at the beginning (using the date criteria for each) and then join that derived table to the other 3 tables needed so that you are joining to "all", "a13", and "a14" only once?Again, I don't know exactly what you're trying to do, but that's what I would do.I think that your elapsed time in this case is due more to the number of steps than to some inefficiency in a particular step. For each step, the PE must dispatch the step to the AMPs and then wait on each AMP to complete it before going on to the next step. So, there is a lot of communication going on back and forth in order to execute this query. If you could reduce the number of steps, that would cut down on all of this.I hope this helps.

Max 13 posts Joined 09/06
21 May 2007

Thanks a lot....I'm looking for around, following your useful suggestions.I continue my test and I tell you.Thanks again ...Massimiliao

jainayush007 50 posts Joined 03/11
03 May 2011

Hello,

Can any one please suggest me what should be the query to measure the CPU and IO time of queries? how can I find it from the query log or from the dbc.ampusage ?

Regards,
Ayush Jain

mnylin 118 posts Joined 12/09
10 May 2011

This data can be found in your DBQL tables, if query logging is enabled for the users issuing the queries you want to investigate. Your DBA should be able to tell you who it's turned on for.

mnylin 118 posts Joined 12/09
10 May 2011

In your query the RequestCPU field is the CPU Time. RequestIO is the number of IO Operations. Other critical fields would be the skew calculations. The higher the skew, the less balanced the work is across the AMPs.

jainayush007 50 posts Joined 03/11
10 May 2011

What are their standard values for each one of CPU Time and IO operations that I should try to adhere to

mnylin 118 posts Joined 12/09
12 May 2011

There are none. The more work your query has to do, the more CPU and IO it performs. A high CPU and high IO query isn't necessarily a bad thing, as long as it is well balanced. That's where your skew values come into play. For skew, the lower the value the better. There isn't necessarily a standard value you should adhere to, but I've seen people recommend you look at tuning queries with a skew factor above 1 or 1.5.

jainayush007 50 posts Joined 03/11
30 May 2011

Hi,

The dbc.DBQLogTbl table has UserId in HEX Format.How can I derive the logon user name from the userid or vice versa?

Regards,
Ayush Jain

mnylin 118 posts Joined 12/09
31 May 2011

There should also be a UserName field. It's further down the list of columns (near the end).

jainayush007 50 posts Joined 03/11
01 Jun 2011

Yes, its there...i seem to have missed it somehow...

You must sign in to leave a comment.