I am running a query, I have 3 fields, Client ID, Client Name and a Sum of various billing totals. Now I need these billing totals to be grouped for the client, so I am grouping on the Client ID.
Now I can't group on name at all as some clients will have changed their name at one point or another, and that would split the grand total into 2 or 3 seperate lines...Can't be having that!
I thought that I could avoid this by placing Client Name in the order by clause along with the Client Total but it isn't having it! Client Name must be entered in an aggregate function or group by clause. Gah!
There must be a simple way around this? I have never been in a situation where this has troubled me before. Lucky me! Till now...
Now I can't group on name at all as some clients will have changed their name at one point or another, and that would split the grand total into 2 or 3 seperate lines...Can't be having that!
I thought that I could avoid this by placing Client Name in the order by clause along with the Client Total but it isn't having it! Client Name must be entered in an aggregate function or group by clause. Gah!
There must be a simple way around this? I have never been in a situation where this has troubled me before. Lucky me! Till now...
Comment