I have a large list of columns in a Select.
To group the result I have to get all the items in the select clause and put in the Group By clause.
I wonder if there's any easy way to get all the items there for reference in GROUP BY, such as a GROUP BY *
How can this be done?
The "easy" way is to copy/paste the columns from your SELECT into the GROUP BY. There's no syntactic short cut in SQL for this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With