Tableau and Custom SQL - plus stored procedure, parameters and initial SQL | sqlbelle

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

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

  • @equiwave80
    @equiwave80 Год назад +7

    This was a timely video as I was just going through how to make use of Custom SQL and Initial SQL in Tableau. Thanks for this video Donabel!!!👍💯

    • @sqlbelle
      @sqlbelle  Год назад +2

      That's great to hear Deepak. And many thanks always, for your comments, questions, and support. I appreciate them very much!

  • @savvyf.2996
    @savvyf.2996 Год назад +2

    OMG thank you so so much. I just had a business user ask about turning their live connection to an extract with stored procedures and this is exactly what I was looking for! Thank you thank you

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

      Thank you Savvy! So glad to hear it was helpful :)

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

    Exactly what i needed. THANK YOU!

  • @timbeard8457
    @timbeard8457 Год назад +2

    Perfect! Looks like this could fix an issue I have with a client. Super video. Just the right length and depth - thank you!

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

    exactly what i am looking for lately. You always deliver what we expected. Thanks again. I gave you tumble up each video i watched.

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

      Thank you Sandra! Much appreciated :)

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

    Really I appreciate your way of explanations ...I learnt alot from you....Thanx a ton

  • @RazaKhan-me3ds
    @RazaKhan-me3ds 3 месяца назад

    Best Video, Explanation is very easy to understand. Thanks

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

    Thank you very much Donabel for this wonderful Video.😍🥰❤

  • @manishKumar-tl2ee
    @manishKumar-tl2ee Год назад

    really, Helpful Video

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

    Great explanation, thank you for this video.

  • @guanyilu5498
    @guanyilu5498 7 месяцев назад

    Hello, really lover your tutorials, it is very helpful. Just wondering do you have any schedule for live session? Absolutely need to join !

  • @operationbroomstick
    @operationbroomstick 6 месяцев назад

    Thank you so much 🙏

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

    Super interesting video thank you 🙂

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

    Very good 👍

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

    Thank you 😊

  • @DaddyYow20
    @DaddyYow20 3 месяца назад

    wow it's awesome, however, I got this error when I tried to connect my store proc "Unable to complete action
    The "[dbo].[Data_Weekly]" stored procedure returned no results. The fields don't have column names, or the data in the fields is not a supported data type.
    Unable to connect to the Microsoft SQL Server server "Server1". Check that the server is running and that you have access privileges to the requested database."

  • @MrBasu-iq6md
    @MrBasu-iq6md Год назад

    I feel the use of stored procedures is very limited in Tableau. How do you use a stored procedure in Tableau that creates a temp table inside the procedure and then returns a select statement from the that temp table??
    Is it even possible in Tableau??

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

    Hi Donabel, I'm using quite complex SQL queries and finding that queries that work in Oracle SQL Developer fail in Tableau Custom SQL, generating various generic and unspecific errors. Other than Tableau not liking a semicolon at the end of a query, do you have any other tips or a syntax comparison?

    • @sqlbelle
      @sqlbelle  Год назад +2

      Hi Tim, I believe we need to use only a single statement in the custom SQL (might need to double check). Usually what I do if I need a custom SQL which has more complicated query, I convert to either Stored Proc, or View, or Table Valued function and use those in the Custom SQL instead.
      For example my custom SQL might look like:
      SELECT *
      dbo.my_new_function_that_does_everything(some params)

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

      @@sqlbelle
      Thank you for the feedback! Here are my notes re what I've picked up by dumb trying stuff out:
      - Oracle MS SQL Developer is much more tolerant than Tableau. A query that works here will not necessarily work in Tableau.
      - Remove the ; at the end of the query
      - Use the double quote, not single quote for naming fields using the AS command. Should you be building up a long list of fields and renaming them in Excel, use CHAR(34), e.g.: =A2&" AS "&CHAR(34)&F2&CHAR(34)&","
      - If you're using Excel like this, don't forget to remove the last comma before "FROM"!
      - SQL Developer seems to be tolerant of multiple fields receiving the same name using AS. Tableau is not. Make sure that they are all unique.
      - Tableau wraps further SQL around the Custom SQL, which can cause performance problems. Once I'm finished, I'll be requesting views from the DB manager to match the custom SQL queries that I've built.
      For further tips on custom SQL and performance impacts, see this article by Emre Oktay at the Information lab: (sorry links get comments deleted by RUclips)

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

    This awesome. I love the fact that you have created a database for Superstore data. Can you share the database script with us. Thank you. You are amazing!!!

    • @sqlbelle
      @sqlbelle  Год назад +2

      Thank you Eric. I will be putting together some resources I used in videos - I will post them in sqlbelle.com. They're not there yet, but hoping to do so this week. I'll make a post once they're there. Thank you for your comments and support!

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

      @@sqlbelle Sounds good, I look forward to seeing that. I appreciate you!

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

    Hi Mam, can you put a video on how to make an extract connection with stored proc that are using paramaters for From and To dates.

    • @firstname4337
      @firstname4337 7 месяцев назад

      just do what she did but use a date parameter instead of s string for product name

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

    Custom SQL or Stored Procedure which is best for performance ?

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

      Hello Naveen - I'd say it's always it depends. It depends on what the Custom SQL is, and it depends on whether a stored procedure is a sufficient alternative. There are benefits to using stored proc as database engines tend to optimize these more; however they do pose restrictions when used with Tableau (ie can only do live connections)

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

      @@sqlbelle Thanks for the response

  • @aliyakhankhan3929
    @aliyakhankhan3929 9 месяцев назад

    Hi mamm

  • @firstname4337
    @firstname4337 7 месяцев назад

    it seems like passing the product name to the sql could lead to a sql injection attack