How do I use multiple sql in builder. I want to convert a text field into a numeric field by identifying the unique values and assigning each value an interger. The sql commands (from FoxPro) are:
1) select distinct field1 as ufield from table1 into cursor temp1
2) select ufield, rowno() as id from temp1 into cursor temp2
3) select field1, id from table1, temp1 where field1 = ufield
I want to use a TQuery to do steps 1 and 2, but how do I implement rowno(). I don't know how to do step 3, since I am using data sources as the source for the data in TQuery.
J. Vorwald
1) select distinct field1 as ufield from table1 into cursor temp1
2) select ufield, rowno() as id from temp1 into cursor temp2
3) select field1, id from table1, temp1 where field1 = ufield
I want to use a TQuery to do steps 1 and 2, but how do I implement rowno(). I don't know how to do step 3, since I am using data sources as the source for the data in TQuery.
J. Vorwald