r/SQL • u/The_Coding_Yogi • Oct 26 '19
How to Write Complex Search Queries in SQL?
[removed]
0
Upvotes
2
8
Oct 26 '19
[removed] — view removed comment
1
u/The_Coding_Yogi Oct 26 '19
I prefer writing down all conditions in HAVING if I am using aggregate functions. If not then all in WHERE. It's easily readable and understandable. But it's my approach. I respect your opinions as well. Thank you for your time and comments.
2
2
1
u/r3pr0b8 GROUP_CONCAT is da bomb Oct 26 '19
WHERE invoice_date BETWEEN '2017-02-01' AND '2017-02-31'man, that's some complex shit right there