Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 26th, 2003, 09:38 PM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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




 
Old November 26th, 2003, 10:16 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your joins are wrong. Show your SQL code.



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent displaying duplicate infromation in xsl Indy1304 XSLT 1 July 28th, 2008 11:13 AM
Duplicate Data in Form, its Subform and SubSubForm Odeh Naber Access VBA 0 April 17th, 2008 03:01 AM
Duplicate records while inserting the data ebindia0041 .NET Framework 1.x 0 May 23rd, 2007 07:15 PM
Duplicate Data IN DROPDOWNLIST. prasanta2expert ASP.NET 1.0 and 1.1 Professional 4 November 22nd, 2006 05:36 AM
eliminating duplicate data erin SQL Language 2 April 22nd, 2004 11:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.