Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
A:
Load * Inline [
A, B, C, Sum
1, P, B, 500
1, P, 4, 600
2, S, 5, 700
3, R, 6, 800
];
B:
Load A,
B,
Sum(Sum) As total
resident A
Group By A,B;
Drop Table A;
Hi Gulshan,
Is this what you needed?
Regards,
H
1) Table A will be loaded, source is an INLINE table
2) Table B will be loaded, source is the resident table A from the data model
while loading table B, the records will be grouped by fields A and B and an aggregate will be calculated.
3) Table A will be dropped from the model
Hi Hector,
Actually I just want to know that When Execution flow reaches in table B the first statement that will execute is resident. after that which Statement will execute and why..?
Hi Stefan,
Thanks for your information. It helps me a lot. can you please tell me that when I comment the Group by statement then in Drop statement it'll give error. why is it so..?
Gulshan,
I suposse that is not DROP TABLE sentence what fails; if you comment GROUP BY sentence you cannot use Sum() function (or another aggregation function).
Regards,
H
But again it gives an error...
you need semi Colon after Resident A;
Thanku Sunny....
Now it is working
Awesome