How To Write SQL Server Queries Correctly: Case Expressions

  Рет қаралды 984

Erik Darling (Erik Darling Data)

Erik Darling (Erik Darling Data)

Күн бұрын

Пікірлер: 13
@corykeilig5183
@corykeilig5183 2 күн бұрын
Erik is a genius !
@MercyFromOverwatch2
@MercyFromOverwatch2 3 күн бұрын
Happy new year keric
@CindyofTheShire
@CindyofTheShire 3 күн бұрын
How did i never realize this and it was in front of my face 🤦‍♀️. I am loving this series btw.
@ErikDarlingData
@ErikDarlingData 2 күн бұрын
Awesome! Glad you’re enjoying it! Hopefully no surgery required.
@CollinReinking
@CollinReinking 2 күн бұрын
this series is great.
@AttilaJakusovszky
@AttilaJakusovszky 2 күн бұрын
Thanks for explaining and giving a fix too. I have a question, you mentioned earlier that partitioning tables are not giving performance boost as expected. What do you suggest, how can I iterate a big table over? When preparing data from it, the whole table can easily fill the temp tablespace, that is why I needed to put row numbers on it. I create a temp table containing PK and I row numbers, and joining that back to the original table to iterate over it. But that looks like an overkill.
@ErikDarlingData
@ErikDarlingData 2 күн бұрын
I don't really understand the question here. Iterating over a table to do what?
@BrandonChampion
@BrandonChampion 2 күн бұрын
Most of the other database engines have procedure languages that include CASE STATEMENTS (a version of IF / ELSE control flow statements), but I really wish they didn't. Every time I've seen one in the wild it's a mess to comprehend and maintain.
@ErikDarlingData
@ErikDarlingData 2 күн бұрын
Well, are you talking about SWITCH style statements or something else? I'd be curious of they have similar short circuit oddities.
@vasylpavuk391
@vasylpavuk391 2 күн бұрын
Thank you for the nice article. But I saw even worse: join predicates with a "case" statement and table rows are joined (or not) based on the result of the "when" condition 😋that contains variables and column names
@ErikDarlingData
@ErikDarlingData 2 күн бұрын
That is bad yes. One might wonder just how much can be tolerated.
@FlaggedStar
@FlaggedStar 2 күн бұрын
Erik always tells us to not look into the armpit. He's fooling us. Under the armpit is the source of his power! True SQL ability is but a sniff away!
@ErikDarlingData
@ErikDarlingData 2 күн бұрын
In France they call it l'odeur de la sagesse
How To Write SQL Server Queries Correctly: EXISTS and NOT EXISTS
20:03
Erik Darling (Erik Darling Data)
Рет қаралды 1,3 М.
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
How To Write SQL Server Queries Correctly: Common Table Expressions
27:49
Erik Darling (Erik Darling Data)
Рет қаралды 2,5 М.
Was I Wrong About Blazor? | Coding Shorts 111
16:35
Shawn Wildermuth
Рет қаралды 30 М.
Fundamentals of Selects
25:21
Smart Postgres
Рет қаралды 4,1 М.
How To Write SQL Server Queries Correctly: Where Clauses With OR In Them
19:05
Erik Darling (Erik Darling Data)
Рет қаралды 797
How To Write SQL Server Queries Correctly: Views vs Common Table Expressions
15:59
Erik Darling (Erik Darling Data)
Рет қаралды 638
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 94 М.
Which Database Model to Choose?
24:38
High-Performance Programming
Рет қаралды 67 М.
Web Developers Are Disconnected
21:36
ThePrimeTime
Рет қаралды 233 М.