AI Engineering at Experian | Tableau Ambassador | Author & Creator of SQL Short Reads | Lecturer at the University of Texas at Dallas | YouTube @ChrisMPerry
Nothing says "cross-functional collaboration" like passing data quality issues downstream.
The irony? The people least equipped to fix these issues are often the ones expected to work around them.
Ignoring a data quality issue doesn't eliminate the work. It simply transfers the burden to someone else.
Fix data quality issues as close to the source as possible.
@ThePrimeagen I get the same crap on LinkedIn. I swear the prompt is: Make me sound intelligent by making a counterpoint or argument. Point out an edge case even if it doesn’t directly tie to what the author of the post is talking about.
@mattpocockuk It seems to be occurring across all social media platforms. I know the general consensus on here is that LinkedIn is a crap place for intelligent conversations, but I found it to be rather decent until the advent of AI.
UNION ALL stacks two SELECTs into one result set.
1Skip UNION's costly duplicate check when you can
2Tag the rows so you know where each came from
3Use a NULL dummy attribute to keep columns aligned
https://t.co/QNyoSmPDbH
#SQL
Complex logic. Simple query.
SQL views let you write the hard part once (joins, filters, distinct counts, aggregations) and reuse it with one SELECT.
Key idea: a regular view stores the query, not the results. Same definition, always-current data.
Bonus: in Oracle, you can read a view's SQL back with ALL_VIEWS.
I spent about 6 hours yesterday developing my logistic regression lecture materials for my business analytics students only to come to the end and say to myself, “hmm, am I going to actually be able to fit this into a single lecture.”
How does SQL compare a row to the one before it?
LAG() pulls a value from an earlier row in a defined order, so month-over-month change becomes simple math.
88 seconds, one example, every step shown.
#SQL#DataAnalytics