SUM Of Empty Set Returns WHAT?!

SUM of an empty set or all NULLs returns something unexpected! This breaks all math assumptions. Your mind will explode! Watch now!

#sql #sqltricks #database #sqltutorial #sum #aggregate #sqlquiz #codingchallenge #sqlshorts #sqlbugs #nullhandling #sqlwtf

https://www.youtube.com/watch?v=Z-94Yr5vElY

SUM Of Empty Set Returns WHAT?! #sqltutorial

YouTube

Build a successful tech career with Python Full Stack training at TryCatch Classes. Learn Python, Django, React, SQL and APIs through hands-on projects, expert mentorship and complete placement support to get job-ready faster.

#Python #Django #React #SQL #education

Senior Go Developer at Wallarm

Wallarm is hiring Senior Go Developer

SQuizL 30-DEC-25
1/6 guesses
91 seconds
๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฆ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ

https://bit.ly/SQuizL-game
#SQuizL #SQL

This is pretty sweet. #litehug, a #SQL library for #lua which lets you write your queries directly in SQL. Think #SQLc, but for lua. ๐Ÿ˜Ž

https://git.sr.ht/~technomancy/litehug

SQL Injection In ORDER BY Drops Your Table?!

SECURITY NIGHTMARE! Everyone secures WHERE clause but ORDER BY is VULNERABLE! User input in ORDER BY can DROP TABLES! Even prepared statements won't save you! Watch this attack!

#sql #sqlinjection #security #orderby #droptable #sqlvulnerability #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #injectionattack

https://www.youtube.com/watch?v=QeSaSAX24sQ

SQL Injection In ORDER BY Drops Your Table?! #droptable

YouTube

I've been doing a lot of data analysis and performance optimisation recently, and one thing I've found is unbelievably quick is to move calculations from $language into SQL User Defined Functions.

For example, if I have a table of invoices with columns for the price inc. VAT and the VAT rate and I want to get the price ex. VAT, I can write an EX_VAT(inc_vat, vat_rate) function in SQL which is far faster than iterating over each row and calling an ex_vat($inc_vat, $vat_rate) PHP function.

#SQL

Most popular blog posts in 2025

It's time for my annual roundup of the most popular blog posts in 2025 by views, likes, and comments.

VladDBA

Avi Chawla (@_avichawla)

Postgres์— ์žˆ์–ด ์ค‘์š”ํ•œ ์ˆœ๊ฐ„์ด๋ผ๋ฉฐ AI ์ฝ”๋”ฉ ๋„๊ตฌ๋“ค์ด Postgres ์ฝ”๋“œ๋ฅผ ์ž˜ ๋ชป ์จ์˜จ ์ด์œ ๋ฅผ ์ง€์ ํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋ธ์ด ๋‘”ํ•ด์„œ๊ฐ€ ์•„๋‹ˆ๋ผ ํ•™์Šต ๋ฐ์ดํ„ฐ(์ธํ„ฐ๋„ท์— ์žˆ๋Š” ์˜ค๋ž˜๋œ Stack Overflow ๋‹ต๋ณ€ ๋“ฑ)์— ๊ธฐ์ธํ•œ๋‹ค๋ฉฐ LLM ํ•™์Šต ๋ฐฉ์‹๊ณผ SQL ์ƒํƒœ๊ณ„์˜ ๋ฌธ์ œ๋ฅผ ์ง€์ ํ•˜๋Š” ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.

https://x.com/_avichawla/status/2005527034127433933

#postgres #llm #aicoding #sql

Avi Chawla (@_avichawla) on X

Big moment for Postgres! AI coding tools have been surprisingly bad at writing Postgres code. Not because the models are dumb, but because of how they learned SQL in the first place. LLMs are trained on the internet, which is full of outdated Stack Overflow answers and

X (formerly Twitter)
Senior Full-stack Engineer, Product Partnerships at Braze

Braze is hiring Senior Full-stack Engineer, Product Partnerships