Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mdcurran
· 2y ago · 0 comments
This doesn’t totally solve the issue of SELECT’ing first then filtering, but for complex queries I’ve found CTEs very useful (whenever the database/SQL dialect supports it).
Comments
[–]
icedchai
2y ago
What I usually do is start with "select *", get the joins and where clause down, then refine the select.