If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Referral Tracking System Design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-16-06, 12:22
abot abot is offline
Registered User
 
Join Date: Oct 2006
Posts: 3
Referral Tracking System Design

I'm very new to database design so there may be a very simple solution that i just cant see.

I am trying to build a simple referral tracking system

I am using filemaker

The challenge i have is how to link the referrer to the referree. As i understand it, it is a one (referrer) to many (referrees) relationship. but both the referree and the referrer are customers in the same table.

what i want is in the customer table, to be able to select the referring customer and for the referring customers record to have a list of all the other customers that they referred.

thanks in advance for your help.
Reply With Quote
  #2 (permalink)  
Old 10-18-06, 00:39
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
I don't know if filemaker supports it, but what you want is a recursive relationship.

Customer(customerID, referrerID, CustomerName ...)

In this table the referrerID would be the customerID of the referrer of the customer. This creates a hierarchical chain of relationships within the same table.
__________________
visit: relationary
Reply With Quote
  #3 (permalink)  
Old 10-19-06, 11:45
abot abot is offline
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks

Thanks a lot for your help

That was exactly what i needed to know. It works perfectly in Filemaker

thanks again.
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On