Skip to main content
Question

How to get only 2 columns from data table that has many columns and create a new data table using that 2 columns?

  • Jun 15, 2022 12:33 PM UTC
  • 2 replies
  • 202 views

How to get only 2 columns from data table that has many columns and create a new data table using that 2 columns?

2 replies

  • Cadet | Tier 2
  • Jun 15, 2022 3:07 PM UTC

Define Index? First column: Index 0


Ashwin A.K
Forum|alt.badge.img
  • Navigator | Tier 3
  • Jun 17, 2022 12:11 PM UTC

Hi @Pratiksha Pawar​ ,

 

If you are fetching data from excel, then that can be achieved by connecting to Excel like it were a database and using a Select Query to fetch the columns you are interested in:

 

SELECT Col1, Col2 FROM [Sheet1$$]

 

Kind Regards,

Ashwin A.K