hey all,
i'm developing an internal intranet application for a company this summer and need some help. basically i am stuck with displaying some data on one of my pages.
First off, I am using ColdFusion with an Oracle backend. I am trying to display data from two tables that have a 1 - Many relationship. Just For example, 1 city can have Many zipcodes. So lets say i am trying to output all of the cities and their zipcodes on a page. How my page works now, is it will display each city name and one zipcode as one row, and do this for each zipcode. What i want is for it to display the city name once, and all the zipcodes that go alone with it in a group.
like this.
CityName ZipCode
----------------------------------------
Chicago 60655
60611
60422
Dekalb 60115
instead of this
CityName ZipCode
----------------------------------------
Chicago 60655
Chicago 60611
Chicago 60422
Dekalb 60115
can anyone help me with the logic behind this? i dont expect anyone to know the coldfusion syntax for my problem, i mean i would appreciate it, but if you can just help with the logic that would be a huge help.
i'm developing an internal intranet application for a company this summer and need some help. basically i am stuck with displaying some data on one of my pages.
First off, I am using ColdFusion with an Oracle backend. I am trying to display data from two tables that have a 1 - Many relationship. Just For example, 1 city can have Many zipcodes. So lets say i am trying to output all of the cities and their zipcodes on a page. How my page works now, is it will display each city name and one zipcode as one row, and do this for each zipcode. What i want is for it to display the city name once, and all the zipcodes that go alone with it in a group.
like this.
CityName ZipCode
----------------------------------------
Chicago 60655
60611
60422
Dekalb 60115
instead of this
CityName ZipCode
----------------------------------------
Chicago 60655
Chicago 60611
Chicago 60422
Dekalb 60115
can anyone help me with the logic behind this? i dont expect anyone to know the coldfusion syntax for my problem, i mean i would appreciate it, but if you can just help with the logic that would be a huge help.