View Full Version : Automatic League Table
12-06-2010, 07:37 PM
12-06-2010, 09:26 PM
This does sound like a design issue you need to resolve. Some possible solutions:
1) use a column "status_code" to keep tabs on each game submission. It could be as simple as this kind of table:
0 means neither manager has submitted
1 means only one manager has submitted
2 means two managers have submitted and the scores match
-1 means two managers have submitted and the scores do not match
2) Store manager submissions in a separate table, relating to the submitted game via foreign key
This way you can track more accurately which manager submitted, when the score was submitted, and what score was submitted. Much better for keeping an audit trail, but more complex and more coding required. But it solves the problem of staring at a status code of "2" and wondering when the submissions came in and if they really did match.
12-06-2010, 09:37 PM
Thank you :)
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.