Hey fiber,
You want to use the group attribute with <cfoutput> but you have to make sure to include the "grouped" field in your sql "order by clause". Here's an example:
<cfquery name="q1" ...>
select companyName,productName from table1
order by companyName asc, productName asc
</cfquery>
<cfoutput query="q1" group="companyName">
#companyName#
<hr>
<cfoutput>
#productName#<br>
</cfoutput>
<hr>
</cfoutput>
Everything within the inner <cfoutput> tags is repeated for each record and everything outside of them is repeated for every new value in the field set in the "group" attribute.
Let me know if you have any trouble with it,
GJ