I have a database in SQL Server.
Every single field in the entire database is named like this 'F01, F02, F03..." all the way to 'F25000'
It's difficult to work with this database because I either have to guess what the field is by the data contained within the field, or I have to look up what the field definition is in an external CSV file.
I have a CSV file that has every single field defined with an alpha numeric description.
Can I create a table, maybe called "Fields", then add the Field and Description columns from the CSV file to that table? Then I'd like to refer to this Fields table in future queries where the column headers are replaced by the alpha numeric definition field found in the newly created Fields table? I think this is all possible.
How do I create the table and add the contents of the csv file to that table? CSV file contains just two columns, Field Number and Description.
Then how do I write the query to refer back to the fields table that I created? I just want to select * from the other tables in the database but replace the column headers with the field definitions.
F01 as <useful name>clauses. Assuming your alpha numeric descriptions don't have spaces.