Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple Loads Execution Flow

Hi,

     In the following script which load statement is executed first. Whether the VIN in the KEY is made first according to the first load statement or the VIN  is grouped according the second load statement first.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ServiceRetention:

Load     *,

        'ServRet'                                                        AS [Trn Type],

        VIN & ' | ' & [Selling Dealer]                             AS KEY;

Load

         VIN,   

         firstvalue(DEALER_CD)                                  AS [Selling Dealer]

RESIDENT [Service Retention3]

GROUP BY VIN;

DROP TABLE [Service Retention3];

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks!

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

The last one with aggregation by VIN is executed first. Then the KEY is generated for each unique VIN.

I think you could just try it in a separate exaple see what happends.

View solution in original post

1 Reply
whiteline
Master II
Master II

Hi.

The last one with aggregation by VIN is executed first. Then the KEY is generated for each unique VIN.

I think you could just try it in a separate exaple see what happends.