/t5/coldfusion-discussions/using-cfloop-to-ignore-repeated-values-help/td-p/1005340Oct 18, 2006
Oct 18, 2006
Copy link to clipboard
Copied
I have a query that joins two tables for a price comparison
site. the first table holds information about a product. the second
table holds store specific information about a product. so a
product in the first table is unique. In the second table the
product is repeated depending on how many stores stock the product.
When I go through CFoutput the product is being duplicated
which I want for certain screens but not others. I need a cfloop
that checks to see if a product title is repeated and if so, move
to the next product. without duplicating the product in cfoutput
/t5/coldfusion-discussions/using-cfloop-to-ignore-repeated-values-help/m-p/1005342#M91322Oct 18, 2006
Oct 18, 2006
Copy link to clipboard
Copied
Need more information, such as are you trying to display
information in a table, or do you want to display the product once,
then all of the stores that stock it, etc. This is usually
accomplished by an ORDER BY product in your query, then using the
group attribute in cfoutput where you would display the product in
the bable, then using a separate cfoutput eithin the table for the
details, etc.