Subject: Avoiding Displaying duplicate data
Posted By: saleaf10 Post Date: 11/26/2003 8:38:44 PM
Hi everyone:
I have a problem. I connected my database to the web. The database contain two tables SchoolDistrict and SchoolDistrictContactInformation. Each school district has more than one contact person. My current code display the data from the two tables using ASP. The problem is that I want the schoolDistrict and the contact person to appear only once not as many times as there are contact person in the SchoolDistrictContactInformation table.
Here is what happen for this school district which has two contact perons in the SchoolDistrictContactInformation table it is displaying the school district information as many time as there are contact perons :

 AKRON CENTRAL SCHOOLS
 47 Bloomingdale Ave.
 Akron, NY 14001  (716) 542-5010
 http://www.akronschools.org
 Mr. Adam Stoltman, Elementry **
 
 
 AKRON CENTRAL SCHOOLS
 47 Bloomingdale Ave.
 Akron, NY 14001  (716) 542-5010
 http://www.akronschools.org
 Ms. Cathy Haight, Secondary **
 


---
the way i want it to work is to display the above information one time but with two contact persons that are highlighted in blue. Here is how i want it to be displayed:

 AKRON CENTRAL SCHOOLS
 47 Bloomingdale Ave.
 Akron, NY 14001  (716) 542-5010
 http://www.akronschools.org
 Mr. Adam Stoltman, Elementry **
 Ms. Cathy Haight, Secondary **
 


if anyone has any info. of how i should do this please let me know as soon as possible. This is very important.

thanks. Al




Reply By: sal Reply Date: 11/26/2003 9:16:48 PM
Your joins are wrong. Show your SQL code.



Sal

Go to topic 6943

Return to index page 997
Return to index page 996
Return to index page 995
Return to index page 994
Return to index page 993
Return to index page 992
Return to index page 991
Return to index page 990
Return to index page 989
Return to index page 988