How To Write SQL Server Queries Correctly: Subqueries

  Рет қаралды 1,100

Erik Darling (Erik Darling Data)

Erik Darling (Erik Darling Data)

Күн бұрын

Пікірлер: 9
@jasonpeak8899
@jasonpeak8899 2 күн бұрын
Love this kind of conversation. I've worked most of my adult life in the ERP space and can probably count on one hand the number of developers I've worked with who don't call it a day when their query returns the data they expected. If you're writing a report that the end user doesn't care if it takes five minutes to complete, that's one thing. If you're putting code into a database insert/update trigger, that's a whole different situation. Started writing SQL in Informix SQL/4GL on AT&T Unix System V, so I appreciate every CPU cycle...you used to know a bad query from the disk thrashing.
@ErikDarlingData
@ErikDarlingData 2 күн бұрын
Ha ha, that sounds like a fun time. I do sometimes miss those hard drive noises.
2 күн бұрын
I have yet to see an example of subqueries in the select list in the wild that wasn't terrible. So this is one of those things where you can either just tell people not to do it or send them for a few days of training.
@ErikDarlingData
@ErikDarlingData Күн бұрын
I believe that’s what the point of this video is, so send them here.
@mattcargile
@mattcargile 3 күн бұрын
Subqueries and derived tables can get confused. A lot of times I think folks say subquery when they mean derived tables.
@ErikDarlingData
@ErikDarlingData 3 күн бұрын
Maybe I’ll start calling CTEs subqueries.
@anuragkumar-dm1er
@anuragkumar-dm1er Күн бұрын
Sorry for asking but is there a way I can get the script used in the video ?
@ErikDarlingData
@ErikDarlingData Күн бұрын
I only provide scripts with paid training.
How To Write SQL Server Queries Correctly: Common Table Expressions
27:49
Erik Darling (Erik Darling Data)
Рет қаралды 559
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
How To Write SQL Server Queries Correctly: IN and NOT IN
15:22
Erik Darling (Erik Darling Data)
Рет қаралды 514
When to Use a Subquery in SQL
8:50
Database Star
Рет қаралды 38 М.
Fundamentals of Selects
25:21
Smart Postgres
Рет қаралды 3,8 М.
Was I Wrong About Blazor? | Coding Shorts 111
16:35
Shawn Wildermuth
Рет қаралды 27 М.
How To Write SQL Server Queries Correctly: EXISTS and NOT EXISTS
20:03
Erik Darling (Erik Darling Data)
Рет қаралды 1 М.
How To Write SQL Server Queries Correctly: Apply
20:12
Erik Darling (Erik Darling Data)
Рет қаралды 706
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 177 М.
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
Intro To YARP In C# - How To Create a Reverse Proxy
52:31
IAmTimCorey
Рет қаралды 6 М.