DEV Community

Discussion on: SQL Subquery and CTEs( Common Table Expressions)

Collapse
 
aaronre16397861 profile image
Aaron Reese

Thank you for taking the time to post and I understand the need for brevity, but all of you nested query examples could been written with joins or TOP/LIMIT.
However I do like your CTE example of using one to group customers by their indexed fields, then linking the results back up to the original table for enrichment data. It's a pattern I wish was more widely adopted