Hope you are doing well. I need some help. Just for example, I have 3 csv files:
1) File1.csv with 2 records / rows
firstname | lastname | city | country | emailaddress
-----------------------------------------------------
alexf sdfsd mumbai india sdf@sdf.com
----------
asfd sdfsdf toronto canada dfsd@sdf.com
2) secondfile.csv with 2 records / rows
first-name | last-name | currentcity | currentcountry | email-address
----------------------------------------------------------------------
asdf sdfkjwl sydney australia sdf@dsffwe.com
----------
lskjdf sdlfkjlkj delhi india sdflkj@sdf.com
3) userfile.csv with 2 records / rows
fname | lname | usercity | usercountry | email
-----------------------------------------------
sdf sdflj auckland new zealand sdf@sdf.com
----------
sdfsdf sdf venice italy sdf@dsf.com
Now I want to create a single csv or excel or mysql or any database table in which i want all of these records from all the different csv files with different columns / header names but having same type of data. Like this:
singlecsvfile.csv
first_name | last_name | city | country | email_address
--------------------------------------------------------
alexf sdfsd mumbai india sdf@sdf.com
asfd sdfsdf toronto canada dfsd@sdf.com
asdf sdfkjwl sydney australia sdf@dsffwe.com
lskjdf sdlfkjlkj delhi india sdflkj@sdf.com
sdf sdflj auckland new zealand sdf@sdf.com
sdfsdf sdf venice italy sdf@dsf.com
In reality I have 50+ files like that with different column names but same type of data due to different type of data-sources. What would you suggest me to do, what strategy or way would you suggest and how should i implement this. Please suggest me easy way (excel / powerquery / powerBI) or code(php / sql) with some description if possible. I am in need of quick or automated solution something like data mapping. I have searched alot but could not find any solution. Suggestions would be appreciated. Thanks