SELECT table1.*, table2.field1, table2.field2 ; && all table2 fields but CustID from table1 ; inner join table2 ; on table1.CustID = table2.CustID ; into cursor temp1 ; order by CustID copy to textfile.txt type sdf>I have 2 dbf table each having different fields, type and lengths but have a common field CustID. My aim is to combine both table into a text file in the following order:-