![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Suppose you have a table with a status column, and the status can be one of "queued", "inprogress", "failed", or "completed". This can be enforced two ways: 1. *status has a FK to a "statuses" table, and the allowed statuses * * are in that table. 2. *with a constraint such as * * * * status in ('queued','ip','failed','completed') Which is more typically used? *What are the pros and cons, tradeoffs, etc, of each? Many TIA! Mark -- Mark Harrison Pixar Animation Studios |
#3
| |||
| |||
|
|
Suppose you have a table with a status column, and the status can be one of "queued", "inprogress", "failed", or "completed". This can be enforced two ways: 1. *status has a FK to a "statuses" table, and the allowed statuses * * are in that table. 2. *with a constraint such as * * * * status in ('queued','ip','failed','completed') Which is more typically used? *What are the pros and cons, tradeoffs, etc, of each? Many TIA! Mark -- Mark Harrison Pixar Animation Studios |
#4
| |||
| |||
|
|
Suppose you have a table with a status column, and the status can be one of "queued", "inprogress", "failed", or "completed". This can be enforced two ways: 1. *status has a FK to a "statuses" table, and the allowed statuses * * are in that table. 2. *with a constraint such as * * * * status in ('queued','ip','failed','completed') Which is more typically used? *What are the pros and cons, tradeoffs, etc, of each? Many TIA! Mark -- Mark Harrison Pixar Animation Studios |
#5
| |||
| |||
|
|
Suppose you have a table with a status column, and the status can be one of "queued", "inprogress", "failed", or "completed". This can be enforced two ways: 1. *status has a FK to a "statuses" table, and the allowed statuses * * are in that table. 2. *with a constraint such as * * * * status in ('queued','ip','failed','completed') Which is more typically used? *What are the pros and cons, tradeoffs, etc, of each? Many TIA! Mark -- Mark Harrison Pixar Animation Studios |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |