On 10/27/00, John Cummings penned:
>Or as Brian said, just use SELECT DISTINCT FROM XXX

That won't work.

1    DN12    California
1    DN12    Oregon

That will be read as 2 DISTINCT records because the states don't 
match. Even if it didn't, it looks like Sam wants all record 
returned, just doesn't want to repeat the duplicate fields.

Calling these fields myid, code, and state.

1    DN12    California       
                     Oregon
5    DQ46     Utah
                      Utah
9    DZ09      Texas

Try something like this:

<cfset prev_myid = ""><cfset prev_code = ""><cfset prev_state = "">
<table border=1>
<cfoutput query="myquery">
<tr>
<td><CFIF prev_myid IS myid>&nbsp;<CFELSE>#myid#</CFIF></td>
<td><CFIF prev_code IS code>&nbsp;<CFELSE>#code#</CFIF></td>
<td><CFIF prev_state IS state>&nbsp;<CFELSE>#state#</CFIF></td>
</tr><cfset prev_myid = myid><cfset prev_code = code><cfset prev_state = state>
</cfoutput>
</table>
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to