How To Write SQL Server Queries Correctly: Where Clauses With OR In Them

  Рет қаралды 702

Erik Darling (Erik Darling Data)

Erik Darling (Erik Darling Data)

Күн бұрын

Пікірлер: 10
@SQLDevDBA
@SQLDevDBA 3 күн бұрын
Awesome video! Thanks very much!
@FlaggedStar
@FlaggedStar 5 күн бұрын
13:07 This feels like one big jab at sp_BlitzIndex's mode 3.
@ErikDarlingData
@ErikDarlingData 4 күн бұрын
Hahaha, no, just the people who copy and paste from it without any due diligence.
@Cahangir
@Cahangir 4 күн бұрын
Not sure if I could think of UNION ALL in that situation but regardless, thanks for the tip. Hope I'll use it sometime
@ErikDarlingData
@ErikDarlingData 4 күн бұрын
Once you get going with it, it gets easier and more intuitive.
@marwanhefnawy1137
@marwanhefnawy1137 4 күн бұрын
Why don't you use SQL Sentry Plan Explorer for examining your execution plans? I think it is more clear than the built in tool in ssms
@ErikDarlingData
@ErikDarlingData 4 күн бұрын
I've only ever found it useful for long stored procedures. In recent years it has not kept up with SSMS in exposing various query plan details. Solar Winds has really dropped the ball on it. The last couple versions won't even open up on my computer, they just crash instantly.
@wplegend
@wplegend 4 күн бұрын
Would the expanded query with the union all be good to keep instead of the or, or are there performance implications?
@ErikDarlingData
@ErikDarlingData 4 күн бұрын
I'd generally opt for the union all query for a number of reasons.
@wplegend
@wplegend 4 күн бұрын
@ErikDarlingData thanks!
How To Write SQL Server Queries Correctly: Joins With OR Clauses Part 2
18:04
Erik Darling (Erik Darling Data)
Рет қаралды 303
How To Write SQL Server Queries Correctly: Subqueries
23:20
Erik Darling (Erik Darling Data)
Рет қаралды 1,4 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
How To Write SQL Server Queries Correctly: EXISTS and NOT EXISTS
20:03
Erik Darling (Erik Darling Data)
Рет қаралды 1,2 М.
Вся база SQL для начинающих за 1 час
1:19:48
Vlad Mishustin
Рет қаралды 356 М.
🎄 Solving Two Days of Advent Of Code 🎄
56:21
Nick Spreen
Рет қаралды 5
5-Minute SQL Performance Boost Using Execution Plans
8:02
Manish Sharma
Рет қаралды 3,8 М.
How To Write SQL Server Queries Correctly: Joins
25:11
Erik Darling (Erik Darling Data)
Рет қаралды 2,9 М.
Fundamentals of Selects
25:21
Smart Postgres
Рет қаралды 4,1 М.
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 81 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН