Liam O'Brien wrote: > Any help would be fantastic. > Does this have to be done with a query of query? Can you do this against the original database to have all it's capability?
Secondly, I'm not sure, but I have a distinct memory where one can not use an alias in either the group by clause or maybe it was the order by clause. But I remember doing something somewhat like this and having to use the full function in this part of the SQL. I.E. something like GROUP BY LEFT(zip,5) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:3090 Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6