I need a query that will flattion out a relational database. I have 2 objects. Permits and Companies.
Right now you enter a permit, then you can add 1-n companies and attach them to that permit. A query would return Permit Info 1-Company1 2-Company2 etc... I want to return Permit Info,Company1,Company2 This smacks of a crosstab or pivot query, but I am not sure how to make it work, or if either of those are a good solution. I don't just want: permit info,company1 permit info,company2 That is just an easy join. TIA, -- David Mineer Jr --------------------- The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297238 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

