Dudley Dufort Posted May 10, 2007 Posted May 10, 2007 I'm looking for a way to preform a sort in multiple fields within a single record.
AudioFreak Posted May 10, 2007 Posted May 10, 2007 Ok I'm in....How can you sort a single record? I think I'm missing something.
Dudley Dufort Posted May 10, 2007 Author Posted May 10, 2007 Example. I want to find the best seven of nine monthly contest scores for each contestant. So I must "rank" the monthly scores from high to low. I'm looking for an easier way to do this than I have now. Currently I run a comparison calculation on each field that's about a mile long to ascertain which field/month is greater than the rest. I keep thinkin' "there must be an easier way to do this".
Ender Posted May 10, 2007 Posted May 10, 2007 If your scores were entered into a portal of related Scores, you could have another portal or List View that's sorted by Score.
AudioFreak Posted May 10, 2007 Posted May 10, 2007 The scores aren't entered in one record in a repeating field are they?
Dudley Dufort Posted May 10, 2007 Author Posted May 10, 2007 No. They are "pulled in" from related files of the individual monthly contests, via a calculated field. We have awards for the monthly contests. Hence, the individual (monthly) files. Those monthly files are related to the "Year to Date" file. The year end calculations are preformed in the "YTD" scoring program. That's where the sort comes in. All the scores for all the contestants for the nine months are pulled into the YTD program. A complicated sort or ranking is preformed then the highest seven of the nine scores are averaged for the year end season awards. I'm trying to find if someone has found or developed a shorter way to do the sort other than a long series of comparitive statements. Here's how it runs; If A>B and A>C and A>C and A>D etc., etc., etc., then A is the greater number in the set. That evaluation is run for every contestant for every month. Like I said. there must be and easier way
Ender Posted May 10, 2007 Posted May 10, 2007 No. They are "pulled in" from related files of the individual monthly contests, via a calculated field. We have awards for the monthly contests. Hence, the individual (monthly) files. Those monthly files are related to the "Year to Date" file. You make it sound like you have a separate FileMaker file for each monthly contest. This would be a poor structure for a relational database. You should only have one table for each entity. If you change your design to a normalized structure, this present problem should be much easier to solve.
Dudley Dufort Posted May 10, 2007 Author Posted May 10, 2007 Thanks for your input. I guess I'd better just leave "well enough alone". Because we have a multitude of contest "foremats" one size doesn't fit all. The contest foremats vary from month to month. I have several "boiler plate" formats written and I'll tweek them to suit the objective or whims of the contest director for that particular month. I'd kinda like to know where you were going with your "all tables in one file" concept and how the sort would be preformed in that context.
Ender Posted May 14, 2007 Posted May 14, 2007 I'd kinda like to know where you were going with your "all tables in one file" concept and how the sort would be preformed in that context. You've mis-read me. I said one table per entity. That means one table for Contests, one table for Scores, one table for Questions, one table for Contestants, etc, etc. The number of actual files used to make up the solution is not relevant to the relational structure. The differences in the contests from month to month is something that should be recorded as data within fields.
Recommended Posts
This topic is 6460 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 accountSign in
Already have an account? Sign in here.
Sign In Now