In development, we have a couple of databases each similar, but each being designed by different developers.
Lookup Table on Dev
1 Approved
2 Rejected
3 Deleted
4 Cancelled
Lookup Table on Live
1 Approved
2 Rejected
3 Deleted
5 Cancelled
Without fail, someone will write a query based on the ID field of a look-up table. Then when that query is ported to live, doesn't look-up the same value and fails/returns wonky data.
So some developers build their queries by joining on the string value.
To me this seems pretty inefficient, or is it not a problem? I get unduly riled by this lack of a level playing field amongst us.
Is there a best-practice?
Lookup Table on Dev
1 Approved
2 Rejected
3 Deleted
4 Cancelled
Lookup Table on Live
1 Approved
2 Rejected
3 Deleted
5 Cancelled
Without fail, someone will write a query based on the ID field of a look-up table. Then when that query is ported to live, doesn't look-up the same value and fails/returns wonky data.
So some developers build their queries by joining on the string value.
To me this seems pretty inefficient, or is it not a problem? I get unduly riled by this lack of a level playing field amongst us.
Is there a best-practice?