![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
On 12/3/2011 11:43 PM, Jerry Stuckle wrote: And by changing the primary key as you suggest, you have removed the restriction that the first column be unique. It is now possible to create items like I showed. Your suggestion can totally screw up his database. Nonsense. It might make it easier for *him* to screw it up -- but I think there's plenty of room to make the argument that it's screwed up already. |
#22
| |||
| |||
|
|
On 12/4/2011 8:44 AM, Doug Miller wrote: On 12/3/2011 11:43 PM, Jerry Stuckle wrote: And by changing the primary key as you suggest, you have removed the restriction that the first column be unique. It is now possible to create items like I showed. Your suggestion can totally screw up his database. Nonsense. It might make it easier for *him* to screw it up -- but I think there's plenty of room to make the argument that it's screwed up already. I don't see anything wrong with his current implementation. And the purpose of a primary key or unique constraint is to prevent things like your "suggestion" allows. You don't see anything wrong with a table with four columns, a, b, c, |
#23
| |||
| |||
|
|
On 12/4/2011 9:32 AM, Jerry Stuckle wrote: On 12/4/2011 8:44 AM, Doug Miller wrote: On 12/3/2011 11:43 PM, Jerry Stuckle wrote: And by changing the primary key as you suggest, you have removed the restriction that the first column be unique. It is now possible to create items like I showed. Your suggestion can totally screw up his database. Nonsense. It might make it easier for *him* to screw it up -- but I think there's plenty of room to make the argument that it's screwed up already. I don't see anything wrong with his current implementation. And the purpose of a primary key or unique constraint is to prevent things like your "suggestion" allows. You don't see anything wrong with a table with four columns, a, b, c, and d, with primary key (a) *and* an index on (a, b, c, d) ?? Wow. |
#24
| |||
| |||
|
|
On 12/4/2011 9:32 PM, Doug Miller wrote: On 12/4/2011 9:32 AM, Jerry Stuckle wrote: On 12/4/2011 8:44 AM, Doug Miller wrote: On 12/3/2011 11:43 PM, Jerry Stuckle wrote: And by changing the primary key as you suggest, you have removed the restriction that the first column be unique. It is now possible to create items like I showed. Your suggestion can totally screw up his database. Nonsense. It might make it easier for *him* to screw it up -- but I think there's plenty of room to make the argument that it's screwed up already. I don't see anything wrong with his current implementation. And the purpose of a primary key or unique constraint is to prevent things like your "suggestion" allows. You don't see anything wrong with a table with four columns, a, b, c, and d, with primary key (a) *and* an index on (a, b, c, d) ?? Wow. Nope, nothing wrong with the *table*. I question the need for the *index*, but that's something entirely different. I guess on your planet the index isn't part of the implementation... |
#25
| |||
| |||
|
|
On 12/4/2011 9:35 PM, Jerry Stuckle wrote: On 12/4/2011 9:32 PM, Doug Miller wrote: On 12/4/2011 9:32 AM, Jerry Stuckle wrote: On 12/4/2011 8:44 AM, Doug Miller wrote: On 12/3/2011 11:43 PM, Jerry Stuckle wrote: And by changing the primary key as you suggest, you have removed the restriction that the first column be unique. It is now possible to create items like I showed. Your suggestion can totally screw up his database. Nonsense. It might make it easier for *him* to screw it up -- but I think there's plenty of room to make the argument that it's screwed up already. I don't see anything wrong with his current implementation. And the purpose of a primary key or unique constraint is to prevent things like your "suggestion" allows. You don't see anything wrong with a table with four columns, a, b, c, and d, with primary key (a) *and* an index on (a, b, c, d) ?? Wow. Nope, nothing wrong with the *table*. I question the need for the *index*, but that's something entirely different. I guess on your planet the index isn't part of the implementation... |
#26
| |||
| |||
|
|
On 12/4/2011 9:35 PM, Jerry Stuckle wrote: Nope, nothing wrong with the *table*. I question the need for the *index*, but that's something entirely different. I guess on your planet the index isn't part of the implementation... |
![]() |
| Thread Tools | |
| Display Modes | |
| |