This is not perfect (should really be using functions, for starters), but I 
think it will do what you want...

<cfquery name="qEmployees" dbtype="Query">
        SELECT DISTINCT eName
        FROM qEmpAssets
</cfquery>

<table>
        <thead>
            <tr>
                <th> Name </th>
                <th> Asset </th>
                <th> Category </th>
            </tr>
    </thead>
    <tbody>
            <cfloop query="qEmployees">
                <cfquery name="qAssets" dbtype="Query">
                        SELECT *
                        FROM qEmpAssets
                        WHERE eName = <cfqueryparam value="#eName#"/>
                </cfquery>
                <tr>
                        <td rowspan="#qAssets.RecordCount#"> #eName# </td>
                        <cfloop query="qAssets">
                                <cfif qAssets.CurrentRow NEQ 1>
                                        <tr>
                                </cfif>
                                        <td> #aTitle# </td>
                                        <td> #cCategory# </td>
                                </tr>
                        </cfloop>
            </cfloop>
    </tbody>
</table>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320683
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to