r/programminghumor • • Jul 21 '26

Average SQL enjoyer

Post image
2.2k Upvotes

49 comments sorted by

View all comments

Show parent comment

4

u/OutrageousPair2300 Jul 22 '26

Depends where the asterisk appears. In a subquery or CTE from which you will be selecting only certain named columns, it's fine.

1

u/jshine13371 Aug 31 '26

Unless you chain a bunch of those CTEs together. Then the readability gets hurt badly on trying to figure out what is the true source of a specific column. But yes, always exceptions both ways.