p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Databases (http://p2p.wrox.com/forumdisplay.php?f=62)
-   -   Avoiding Displaying duplicate data (http://p2p.wrox.com/showthread.php?t=6604)

saleaf10 November 26th, 2003 09:38 PM

Avoiding Displaying duplicate data
 
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





sal November 26th, 2003 10:16 PM

Your joins are wrong. Show your SQL code.



Sal


All times are GMT -4. The time now is 09:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.