5 Ways to Improve Your SQL Queries

5 Ways to Improve Your SQL Queries

Kahan Data Solutions

3 года назад

89,584 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kyriaeus
Kyriaeus - 13.09.2023 07:18

From what’s I’ve seen, CTE’s are criminally underused. They help with DRY and even on OLTP oriented databases like Oracle and SQL server they act as pass-throughs so the optimizer can “see through” the indirection in most cases, so there’s not even a performance penalty.

Ответить
ерунда сэндвич
ерунда сэндвич - 14.06.2023 01:56

So u read from someone else blog and made a video outta it

Ответить
SAURABH KUMAR
SAURABH KUMAR - 16.03.2023 08:11

This is the best indexing explanation I have seen anywhere on the internet. Period!

Ответить
Chris Stuart
Chris Stuart - 01.03.2023 16:37

#1, So valid, it's not even funny! I work on a data warehouse and let me tell you, this is rule number one for a reason!

Ответить
Bernie Pruss
Bernie Pruss - 30.11.2022 16:12

Appendix or index in a book?

Ответить
Tsunami! :o
Tsunami! :o - 11.11.2022 13:17

no examples

Ответить
Stop Think
Stop Think - 06.10.2022 23:14

Sounds like great tips but as a beginner / intermediate it would be great to see some actual before / after code examples. It's easy to get lost without visuals.

Ответить
One Thousand Years Of Cultivation
One Thousand Years Of Cultivation - 02.10.2022 10:58

I dont understand the point 2# use temp tables.
Other advice i read says avoid temp tables like the plague.

So what gives?

Ответить
Hanan Mostafa
Hanan Mostafa - 23.06.2022 02:50

Could you please explain how can I make a loop in Presto sql?

Ответить
Rick Fu
Rick Fu - 19.06.2022 06:14

Thanks, very well said.

Ответить
ShortsnVedio
ShortsnVedio - 02.06.2022 13:34

If you used examples when it would be better

Ответить
Miguel Victoria
Miguel Victoria - 11.05.2022 22:12

Thanks :) went from more than 2 minutes query down to 750 ms average :D

Ответить
AltesHaus
AltesHaus - 27.04.2022 09:49

Nice, thx

Ответить
Adnan Ghafoor
Adnan Ghafoor - 17.04.2022 15:20

#1 Use filter Data Set
#2 Use temp tables/ CTEs
#3 Don't repeat yourself (Dry)
#4 Use indexes
#5 Be consistent

Ответить
Shesh Kumar Bhombore
Shesh Kumar Bhombore - 01.03.2022 23:09

This is just a theory! Wanted to see some examples :(

Ответить
Adam Scott
Adam Scott - 05.02.2022 01:13

Excellent.

Ответить
NOT an English Person
NOT an English Person - 16.01.2022 02:37

#3
Let's say I have a query with 2 exact same subqueries, is it possible to write a subquery once and use it again somehow?

Ответить
Krupanesh Krishnan
Krupanesh Krishnan - 01.01.2022 07:34

Informative.

Ответить
C Daugherty
C Daugherty - 17.11.2021 07:22

Something that would add value here for me would be showing examples. I'm a little newer to SQL, so actually looking at examples would be helpful! This video may have been aimed at more advanced users, so that makes sense, but this is just my input!

Thanks for taking the time to make this and listen to our feedback!

Ответить
SQL Server Tutorial in 3 Minutes
SQL Server Tutorial in 3 Minutes - 10.10.2021 09:58

Useful advice

Ответить