Skip to main content
Cadet | Tier 2
February 7, 2022
Question

Hi, I would like to write a query to get the values < 365 from an excel table. The name of the column is "Days in Process". I am unable to give the where condition.

  • February 7, 2022
  • 13 replies
  • 160 views
Hi, I would like to write a query to get the values < 365 from an excel table. The name of the column is "Days in Process". I am unable to give the where condition.

    13 replies

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022

    Could you please share the sample of the excel file header with 1 record value? I will try to create the query for this.

     

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022

    Select * from [sheetname$] where Days in Process <365

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022

    Please share the an error description here

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022

    Hi @Adityaganesh Srinivasan​ ,

     

    Are you using excel as a database or directly fetching data from excel?

    _Tamil_
    Cadet | Tier 2
    February 7, 2022

    So, I have to loop the excel and then put it in a database, then use the query?

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022

    The query like a

     

    Select [col1],[col2] from [sheetname$] where [col1] <365

    _Tamil_
    Cadet | Tier 2
    February 7, 2022

     

     

    Below is the excel file, I want to get the values for "days in Process" < 365

    image

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 7, 2022

    you can use if conditions with required column name <365.

     

     

    _Tamil_
    Cadet | Tier 2
    February 7, 2022

    yeah but that takes a lot of time since I have 10,000 rows. I connected the excel to the database and tried to fetch the data but its not working.