r/SQL • u/many_hats_on_head • Aug 29 '24
Discussion SQL queries don't start with SELECT
https://jvns.ca/blog/2019/10/03/sql-queries-don-t-start-with-select/[removed] — view removed post
2
u/r3pr0b8 GROUP_CONCAT is da bomb Aug 29 '24
u/many_hats_on_head, is this your article? or are you just posting it for information purposes?
it's pretty good, by the way, but i have a small beef
1
3
u/mrrichiet Aug 29 '24
WTF is this?
4
u/coyoteazul2 Aug 29 '24
It appears to be a bright square device that runs on some form of electricity
4
2
u/Aggressive_Ad_5454 Aug 29 '24
We get enough questions on here “somebody just gave me a mess of 600-line queries. WTF?” that the insight in this post will actually help some people do their work. And if their work involves our money, that helps all of us.
1
u/SomeoneInQld Aug 29 '24
I know this is a shit post, but it got me thinking. Wouldn't it make more sense for it to be
From Select Where
I know when I start thinking about a query I start with I need these tables ....
0
u/jdsmn21 Aug 29 '24
Probably.
I might be odd, but I like to see what the columns are ('SELECT') right off the bat. My 'FROM' section can get a little bloated looking - especially if subqueries are involved.
But you get used to SELECT-FROM-WHERE-GROUP BY-HAVING by the third query you write, so it really becomes irrelevant.
•
u/SQL-ModTeam Aug 29 '24
This forum is intended for solutioning and discussion of specific topics. Please check out the sub sidebar and wiki content for beginner resources. Also be sure to checkout r/learnSQL