Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple sql

Status
Not open for further replies.

vorwald

Technical User
Jan 2, 2003
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top