Jump to content

This topic is 8647 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have 2 related databases, Clients and Parties in which several parties are related to one client by a specific relationship titled Mother, Father, Son, Daughter.

In the Party database is a Score field. In the Client database is a score field referencing each relationship i.e. Mother:Score. or Father:Score, Son:Score, Daugher:Score.

My objective is to select the relationship which has the highest score so that the other fields in the Party database may be referenced by the Client database for the highest scoring relationship. Is there a way to accompish this??

Posted

Make a new relationship based on a calculated field called HiScoreRel (in the clients file) with this formula:

case (

Mother::Score = Max(Mother::Score,Father::Score,Daughter::Score,Son::Score), MotherRecordID,

Father::Score = Max(Mother::Score,Father::Score,Daughter::Score,Son::Score), FatherRecordID,

Daughter::Score = Max(Mother::Score,Father::Score,Daughter::Score,Son::Score), DaughterRecordID,

SonRecordID)

...where MotherRecordID, FatherRecordID, DaughterRecordID and SonRecordID are the unique record IDs for the respective records.

This topic is 8647 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.