I Executed an sql query to fetch all columns from an excel file whose columns constantly changes.
How to get the 10 last column and the first 3 from in a single dataset and exclude all others?

I Executed an sql query to fetch all columns from an excel file whose columns constantly changes.
How to get the 10 last column and the first 3 from in a single dataset and exclude all others?