I wish to create create a text data file for uploading in staging table. How do we write query for this. We are to map data from legacy system to oracle system. For that we need to create text data file. We are uploading thrrough custom forms that we have made.