Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 26th, 2003, 09:38 PM
Registered User
Join Date: Nov 2003
Location: , , .
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 :

 47 Bloomingdale Ave.
 Akron, NY 14001 (716) 542-5010
 Mr. Adam Stoltman, Elementry **

 47 Bloomingdale Ave.
 Akron, NY 14001 (716) 542-5010
 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:

 47 Bloomingdale Ave.
 Akron, NY 14001 (716) 542-5010
 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 With Quote
  #2 (permalink)  
Old November 26th, 2003, 10:16 PM
sal sal is offline
Friend of Wrox
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts

Your joins are wrong. Show your SQL code.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 07:55 PM.

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