SELECT * ; FROM ImpHeader ; ORDER BY FOO ; GROUP BY FOO ; INTO CURSOR curHeader READWRITEVFP doesn't like the GROUP BY, but it is a pain to GROUP BY all the other fields or aggregate them. I do need the data from the other fields, so SELECT DISTINCT FOO would not help.