Тёмный

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

sqlbelle
Подписаться 127 тыс.
Просмотров 44 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@equiwave80
@equiwave80 Год назад
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 Год назад
That's great to hear Deepak. And many thanks always, for your comments, questions, and support. I appreciate them very much!
@DaddyYow20
@DaddyYow20 5 месяцев назад
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."
@RazaKhan-me3ds
@RazaKhan-me3ds 4 месяца назад
Best Video, Explanation is very easy to understand. Thanks
@sqlbelle
@sqlbelle 4 месяца назад
Thank you!
@guanyilu5498
@guanyilu5498 9 месяцев назад
Hello, really lover your tutorials, it is very helpful. Just wondering do you have any schedule for live session? Absolutely need to join !
@savvyf.2996
@savvyf.2996 Год назад
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 Год назад
Thank you Savvy! So glad to hear it was helpful :)
@timbeard8457
@timbeard8457 Год назад
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 Год назад
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 RU-vid)
@piyushk3652
@piyushk3652 Год назад
Really I appreciate your way of explanations ...I learnt alot from you....Thanx a ton
@sqlbelle
@sqlbelle Год назад
Thank you Piyush
@poonamwaghmare7205
@poonamwaghmare7205 Год назад
Thank you very much Donabel for this wonderful Video.😍🥰❤
@sqlbelle
@sqlbelle Год назад
Thank you Poonam!
@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??
@firstname4337
@firstname4337 9 месяцев назад
it seems like passing the product name to the sql could lead to a sql injection attack
@manishKumar-tl2ee
@manishKumar-tl2ee Год назад
really, Helpful Video
@vijaykesarkar8748
@vijaykesarkar8748 Год назад
Great explanation, thank you for this video.
@sqlbelle
@sqlbelle Год назад
Thank you Vijay
@timbeard8457
@timbeard8457 Год назад
Perfect! Looks like this could fix an issue I have with a client. Super video. Just the right length and depth - thank you!
@sqlbelle
@sqlbelle Год назад
Glad to hear, thank you Tim!
@lifeisanexcitingjourney5534
@@sqlbelle How do I import if I am using Tableau Public?
@katpui99
@katpui99 Год назад
Exactly what i needed. THANK YOU!
@piyushk3652
@piyushk3652 Год назад
Very good 👍
@sqlbelle
@sqlbelle Год назад
Thank you Piyush!
@operationbroomstick
@operationbroomstick 8 месяцев назад
Thank you so much 🙏
@alainponroy2621
@alainponroy2621 Год назад
Super interesting video thank you 🙂
@sqlbelle
@sqlbelle Год назад
Thank you Alain!
@aliyakhankhan3929
@aliyakhankhan3929 11 месяцев назад
Hi mamm
@sqlbelle
@sqlbelle 11 месяцев назад
Hello :)
@thedriver492
@thedriver492 Год назад
Thank you 😊
@sqlbelle
@sqlbelle Год назад
Hope it's helpful!
@sandrahu7122
@sandrahu7122 Год назад
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 Год назад
Thank you Sandra! Much appreciated :)
@ericgoodmandzacka9531
@ericgoodmandzacka9531 Год назад
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 Год назад
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!
@naveennaravala1707
@naveennaravala1707 Год назад
Custom SQL or Stored Procedure which is best for performance ?
@sqlbelle
@sqlbelle Год назад
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
@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 9 месяцев назад
just do what she did but use a date parameter instead of s string for product name
Далее
Tableau, LOD and SQL - Behind the scenes | sqlbelle
9:57
Свадьба Раяна Асланбекова ❤️
00:12
75 How to debug stored procedure in sql server
14:41
Просмотров 16 тыс.
Row-Level Security with Initial SQL
7:45
Просмотров 5 тыс.
Tableau Custom SQL with Parameters
6:12
Просмотров 29 тыс.
Mastering Tableau: The Power of Context Filters
4:34
7 Database Design Mistakes to Avoid (With Solutions)
11:29