G
Guest
Hi,
I have a need to write my query in a function and I don't want to create a
Query object if it is possible. I have created a UNION query statement which
executes and does everything correctly. In the result set of the UNION query
I have two records for the same 'person' but I would like to have it so that
the query statement I create groups and totals each 'persons' results into
one record entry. I effectively need to group my UNION query but I don't know
how I would go about writing this 'nested' query statement.
Any advice would be greatly appreciated. I can get around this in another
way but that would be a little more involved than my idea above (that is if
it is possible).
Thanks in advance...
I have a need to write my query in a function and I don't want to create a
Query object if it is possible. I have created a UNION query statement which
executes and does everything correctly. In the result set of the UNION query
I have two records for the same 'person' but I would like to have it so that
the query statement I create groups and totals each 'persons' results into
one record entry. I effectively need to group my UNION query but I don't know
how I would go about writing this 'nested' query statement.
Any advice would be greatly appreciated. I can get around this in another
way but that would be a little more involved than my idea above (that is if
it is possible).
Thanks in advance...