You could have nested a while loop in the output loop.
> -----Original Message----- > From: Duane [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 12, 2006 8:19 AM > To: CF-Community > Subject: RE: SQL Question > > I ended up using cursors and creating a temp table on the fly. > > Duane ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:215190 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5