Go Back   Dreamweaver Club Forums > Hand Coders Forum > ASP
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 01-22-2008, 07:29 PM   #1
Join Date: Aug 2007
Location: Miami, Fl
Posts: 8
Default Distinct records dataset display

Hello Everyone, back again with some more questions for the group!

I'm developing a database driven application in which I show a group of people. I have a database of people in which some individuals have more than one instance of address or location. On my database this is shown as a duplicate record. (example below)

Whenever I try to display the record in an ASP dataset within my page I get duplicate instances of the same record (which I know is logical taking into account the way it's laid out on the database). My question is: are there any ways around it? is there a way in which I can display just one name and then two instances of all their biographical info?

Thank you!
Dreamweaver Club on Facebook!
garp2100 is offline   Reply With Quote
Old 01-22-2008, 10:20 PM   #2
davidj's Avatar
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256

are you hand coding this

i know a way to do what you want but DW cant do this meaning you have to hand code it
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 01-27-2008, 01:12 AM   #3
mangofreak's Avatar
Join Date: Jan 2006
Location: Toronto-Canada
Posts: 444

Why don't you create another table called say MoreAddresses and relate to your user ID. That way you have one user who can have more addresses than one. You could also use Distinct on your query to only list the users that have a different name.
Hope it helps,

mangofreak is offline   Reply With Quote

Thread Tools
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 On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:12 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com