Run SQL Query with Date Range filter in Excel

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 50

  • @SQLwithManoj
    @SQLwithManoj  7 лет назад +1

    Please subscribe for more videos !!!

    • @MultiDuypro
      @MultiDuypro 6 лет назад

      please give me file excel, tks!

    • @Venky-0708
      @Venky-0708 6 лет назад

      Sir daily i do in excel work basically i want 5rows but the data is 50row how to use sql easily and quickly to execute my excel daily reort file

  • @philipmarno4989
    @philipmarno4989 5 лет назад +3

    Thank you for showing this, I have been trying to find how to achieve this for ages.

  • @SURESH40879
    @SURESH40879 5 лет назад +1

    Excellent approach sir. Thank you

  • @AtlasShrugged79
    @AtlasShrugged79 7 лет назад +1

    Just what I needed! I was having trouble understanding the parameter values.

  • @SannareddyHarshavardhan547
    @SannareddyHarshavardhan547 8 лет назад +2

    Thanks a lot.
    Never thought about this kind of feature in Excel

  • @prasadkrishna3434
    @prasadkrishna3434 4 года назад +1

    Thanks. Very Useful one

  • @osamaasif9601
    @osamaasif9601 5 лет назад +1

    Thank you very much sir Manoj!

  • @josephkamil
    @josephkamil 5 лет назад +1

    Thanks for the useful, straight to the point info

  • @ZanetaNoreikaite
    @ZanetaNoreikaite 5 лет назад +1

    Great tutorial - exactly what I was looking for!

  • @archanasuman
    @archanasuman 7 лет назад +1

    Thank you so much .. this is extremely helpful

  • @kongpopkriangkrai7085
    @kongpopkriangkrai7085 2 года назад +1

    Thank you so much.

  • @bobthuli4715
    @bobthuli4715 8 лет назад +1

    Just what I was looking for. Thanks!

  • @rowynnenaransamy1125
    @rowynnenaransamy1125 4 месяца назад

    Great tutorial - Can you do this in version 365?

  • @letmeexcel5943
    @letmeexcel5943 3 года назад

    Good one Manoj. I loved it. How can I do this in Office 365? I don't find the options.

  • @Roopak007
    @Roopak007 5 лет назад +1

    Hi Manoj.. i have a slightly complicated SQL query with couple of Inner joins and group by functions. i am able to execute my query in SQL studio however when i copy the code with the respective question marks to set up parameters i am getting the message "parameters are not allowed in queries that can't be displayed graphically". I do not have any VBA running in the background. Are you able to advice?

  • @ismailk6089
    @ismailk6089 3 года назад

    Great video thanks, but i have another issue. I need to keep data only in query editor without importing them to the list. How can i do that?

  • @srinivaradharaj240
    @srinivaradharaj240 4 года назад

    Hello Manoj Thanks for the video. Is there a way where I can clear the parameter and bring all data if needed.

  • @franklinjoushua3168
    @franklinjoushua3168 3 года назад

    Hi Manoj, thanks for the info. I'm able to do this but when I open excel again that parameters are not assigned . Any solution for this?

  • @vinodhuddar4013
    @vinodhuddar4013 3 года назад +1

    I am getting converting failed when converting date and or time from character string in excel while fetching data into excel by using between command...please help

  • @염불리
    @염불리 3 года назад

    what a good!!! how to apply to store procedure with parameter? it could'nt work ...help me^^

  • @mkori1991
    @mkori1991 6 лет назад +1

    can we select multi cell as parameters while linking SQL to excel .. hoping I will get answer

    • @SQLwithManoj
      @SQLwithManoj  6 лет назад

      As far as I know you can assign just 1 cell for 1 parameter. But if you need a list of values in multiple cells to be passed to a parameter then you can create a formula in excel that can read all values from cells and concatenate them to a single cell and read that 1 cell value.

  • @prasath_bruce
    @prasath_bruce 7 лет назад

    Hi , if my sql table is getting updated automatically and can i give the date range beyond the end date parameter?

  • @stevenli3240
    @stevenli3240 5 лет назад

    Good video for SQL. Can we rename parameter1 to 'Start Date' please?

  • @physicsmostafa1774
    @physicsmostafa1774 Год назад +1

    i want to do a sql query, but the data is in an excel table not in a database server, how can i use a sql query on an excel table?

    • @SQLwithManoj
      @SQLwithManoj  Год назад

      sorry, you can't query with just excel and within excel. You will need a Database as a query engine. Excel does not support any interface to fire and understand SQL queries. But you can use MS Access though !!!

  • @mkhorana
    @mkhorana 6 лет назад +1

    youre damn genius

  • @naresh90sharma
    @naresh90sharma 6 лет назад +1

    Sir can I use parameter method SQL data connection in Excel

  • @djdisasterjames
    @djdisasterjames 4 года назад

    Great solution, but.. I'm not allowed to use parameters - how do I enable them?

    • @djdisasterjames
      @djdisasterjames 4 года назад

      Got it, I had to View > Criteria > Double-Click Values to select a column to filter, type After [PARAMETERNAME] then it allowed me to continue following your steps :D THANK YOU

  • @codyhayes5926
    @codyhayes5926 4 года назад +1

    this won't work with queries that use JOIN - is there any workaround for that?

    • @SQLwithManoj
      @SQLwithManoj  4 года назад +1

      This will work with simple JOIN queries, but if you have a complex query with several JOINS and filters then try creating a Stored Procedure and execute it from here instead of the query. Check my other video for the same.

  • @naresh90sharma
    @naresh90sharma 6 лет назад

    Sir I have connections with data collection with excel. Refresh is very slowly

  • @sureshchand2393
    @sureshchand2393 2 года назад

    Dear Sir, I tried it, but data nor received in excel, Only Column name received, data not.

  • @sergiomira741
    @sergiomira741 4 года назад +1

    HI Friend!!
    Greetings from Colombia.. If I could I give you 100 Likes👍

  • @gnsarathbabu
    @gnsarathbabu 6 лет назад

    Hi Manoj, I need to read A1 to A1000 one by one and populate on another sheet, how to do it

    • @SQLwithManoj
      @SQLwithManoj  6 лет назад

      For this you don't need SQL, it can be done by a simple macro !!!

    • @gnsarathbabu
      @gnsarathbabu 6 лет назад

      SQL with Manoj Hi Manoj, I have to read A1 to A1000 and extract two columns from the table, then populate in the second tab.

    • @ManojPandeyManub22
      @ManojPandeyManub22 6 лет назад

      OK, for this you need to write a macro, which will concatenate the 1000 values in A column of excel and pass as CSV parameter value to the Stored Procedure and repopulate the retrieved values from Database table in 2nd tab.

    • @gnsarathbabu
      @gnsarathbabu 6 лет назад

      Manoj Pandey hi Manoj, will it be possible to read row by row.

    • @ManojPandeyManub22
      @ManojPandeyManub22 6 лет назад

      row by row will be possible, but it will be a slow process due to multiple rounds from excel to SQL and back to excel. Why don't you do it in SQL Server instead of Excel? Create a SP, read excel data from Linked Server or OPENQUERY(), and rewrite the excel back by using same Linked Server.

  • @skipadam
    @skipadam 5 месяцев назад

    98 records

  • @ashok-bejawada
    @ashok-bejawada 3 года назад

    Video quality not good to view. Can you share quality video

  • @benschlea3205
    @benschlea3205 6 лет назад

    What did you say?