>If so, this combination should do it (note slight change in first SQL)
SELECTMIN(PrimaryKey) AS pk, SecondaryKey AS sk ;
>FROMTableINTOCURSOR TEMP ;
>GROUPBY2
>* now choose smaller of two forfirstcolumn
>SELECTEVAL("MIN(pk,sk)") AS pk, sk FROM temp
Thanks to all who helped me on this.
I chose this approach. I guess all approaches sent are good as well. And, the speed is good as well.