Hi,
I've have a query with about 15 columns in it, one of them being a count() function.
Obviously as I'm using an aggregate function I have to use the GROUP BY statement.
My question is, is there a 'shortcut' way of saying group by *all* columns except the one that I'm aggregating, to save having to list the 14 columns explicitly in the GROUP BY statement?
i.e. something like GROUP BY * ...which I know doesn't work, cos I've tried it!!
Cheers,
Chris.
I've have a query with about 15 columns in it, one of them being a count() function.
Obviously as I'm using an aggregate function I have to use the GROUP BY statement.
My question is, is there a 'shortcut' way of saying group by *all* columns except the one that I'm aggregating, to save having to list the 14 columns explicitly in the GROUP BY statement?
i.e. something like GROUP BY * ...which I know doesn't work, cos I've tried it!!
Cheers,
Chris.