top | item 39799851

(no title)

mdcurran | 1 year ago

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).

discuss

order

icedchai|1 year ago

What I usually do is start with "select *", get the joins and where clause down, then refine the select.