I am new to using SQL and I have a large dataframe consisting of 40,000,000 rows and 30 columns. What code can I use to subset my data into tables which contain 5,000,000 rows each.
I have tried using the code:
SELECT TOP 50000000 [X],
,[Y]
,[Z]
INTO [NEW_TABLE]
FROM [OLD_TABLE]
but I do not know how to alter my code to allow me to produce a table with the other rows.