I'm trying to work out a specific way to copy all data from a particular table (let's call it opportunities) and copy it into a new table, with a timestamp of the date copied into the new table, for the sole purpose of generating historic data into a database hosted in Azure Data Warehouse.
What's the best way to do this? So far I've gone and created a duplicate table in the data warehouse, with an additional column called date copied.
The query I've started using is:
SELECT OppName, Oppvalue
I am not really sure where to go from here!