Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
F1 | F2 |
1 | a |
2 | aaaa |
2 | b |
3 | c |
4 | c |
5 | deee |
5 | e |
F1 | F2 |
1 | a |
2 | aaaa |
3 | c |
4 | c |
5 | deee |
Hi,
If you are using the DISTINCT keyword in a load statement, It means that to load unique rows in the table.
i.e., the DISTINCT keyword works with respect to the whole row, but not the single column.
Your requirement seems that you only want the unique values from F1 column.
So you can do the filteration manually as given in the attachment.
Regards
Andrew Hudson
Hi,
If you are using the DISTINCT keyword in a load statement, It means that to load unique rows in the table.
i.e., the DISTINCT keyword works with respect to the whole row, but not the single column.
Your requirement seems that you only want the unique values from F1 column.
So you can do the filteration manually as given in the attachment.
Regards
Andrew Hudson
Thank you very very much indeed, Andrew!
Dear Andrew,
your file is really useful to me too.
It can be 100 times more useful if it is possible to set a criteria by which QV picks the 1st or the 2nd (or the 3rd) value of F2, when F1 is the same.
In the example above, for example, what if I would like QV to pick the F2 value if it is more than 1 character long?
Is it easy to integrate such a request to your above script?
I have the feeling that we are entering a realm of a script filled with too many IFs...
thanks!