| | |
Loop through query to find value
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2007
Posts: 29
Reputation:
Solved Threads: 0
Hi all,
I am running a query on an MS Access table that has some fields that are the same and some that aren't. For example, the customer number_field is the same, but the start_date field is different. I'd like to run through the query and when the customer_id is the same, have all those records displayed together in a table row.
Is there a way to do this?
Thanks in advance!
I am running a query on an MS Access table that has some fields that are the same and some that aren't. For example, the customer number_field is the same, but the start_date field is different. I'd like to run through the query and when the customer_id is the same, have all those records displayed together in a table row.
Is there a way to do this?
Thanks in advance!
•
•
Join Date: Mar 2007
Posts: 28
Reputation:
Solved Threads: 0
If you order the query by customer_number you can use cfoutput with the group attribute to group the results together.
Sorry for the poor wrapping
Sorry for the poor wrapping
ColdFusion Syntax (Toggle Plain Text)
------------------------------------------------- |customer_num# 1 2007-04-26 | 2007-04-16 ------------------------------------------------- |customer_num# 2 2007-03-10 ------------------------------------------------- |customer_num# 3 2007-03-20 | 2007-04-06 -------------------------------------------------
![]() |
Similar Threads
- how to delete duplicate record in a table by using SQL query (MS SQL)
- Arithmetic Evaluation and Pipes in BASH (Shell Scripting)
- Clean Previous Next Script for MySQL results (PHP)
- help with my for loop (C++)
- query to find the 10th maximum salary (MS SQL)
- active row (ASP.NET)
- Querying a Dataset (VB.NET)
Other Threads in the ColdFusion Forum
- Previous Thread: Passing a structure into an Oracle Procedure
- Next Thread: Zoom Image
| Thread Tools | Search this Thread |





