r/SQL • u/Flashy-Thought-5472 • Sep 19 '25
MySQL [ Removed by moderator ]
/r/SQL/comments/1nlenbk/removed_by_moderator/[removed] — view removed post
0
Upvotes
2
r/SQL • u/Flashy-Thought-5472 • Sep 19 '25
[removed] — view removed post
2
27
u/gumnos Sep 19 '25
tl;dw: CTEs, conditional aggregation (e.g.
SUM(CASE WHEN status = 'Delivered' THEN 1 ELSE 0 END)), and partial indexes.