MySQL Forums
Forum List  »  Newbie

A problem bothers me
Posted by: ken
Date: April 08, 2006 10:44AM

Hi all, I got a problem as follows:
In my dbs, every person may have 5 contact types, but not required to have all of them. I want to get: one person one record regardless which contact type he/she has. How could I deal with it? Thank you very much.
My dbs:table Contact
PersonID ContactTypeID
1 1
2 2
2 3
2 5
3 3
3 4
4 5
What I want:
PersonID ContactTypeID
1 1
2 2
3 3
4 5

Options: ReplyQuote


Subject
Written By
Posted
A problem bothers me
ken
April 08, 2006 10:44AM
April 08, 2006 11:26AM
ken
April 08, 2006 12:00PM
April 08, 2006 01:17PM
ken
April 08, 2006 01:56PM
April 08, 2006 02:32PM
ken
April 08, 2006 02:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.