![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Martin Bowes wrote: We have many programs which use the old style 'not in' queries On what basis is "not in" out-moded and "outer join" modern? Seems to me JOIN is a relational Join to permit a relational Project and NOT IN is an existence test, a relational Difference. I don't see what's "modern" about, ahem, misusing OUTER JOIN to do what NOT IN expresses more clearly. |
#12
| |||
| |||
|
|
Karl |
#13
| |||
| |||
|
|
OldSchool wrote: On Aug 5, 7:30 am, Karl & Betty Schendel <schen... (AT) kbcomputer (DOT) com wrote: Nullable columns are in general evil, broken, and wrong. Karl I have a few "database coders" (I certainly would call them programmers -or- analysts) who don't grasp that concept. *one, btw, I heartliy support. If I hear one of them whine one more time about "needing it as a place- holder because I don't *have* a value (yet)", I may have to employ larger caliber educational tools.... well, they may be evil (not that I see that as a bad thing, bwahahahaha), but we certainly need them in *our* database. *Not as a placeholder for future things, but because we have a century or more of data readings where not every record *had* all the possible bits of data. *And, as the instruments became more capable over the decades, more and more fields were added and recorded. *We do, however, still have measurements taken in the 1880s with a tape measure and a stick. Mixed in there with readings made on the most modern automated sensors and fed directly into the system. And no, we don't have hte resources to completely redesign everything from the database to the applications to the workflow processes of 11,000 technicians and hydrographers. *;-) Jim- Hide quoted text - - Show quoted text - |
#14
| |||
| |||
|
|
On Aug 5, 7:30 am, Karl & Betty Schendel <schen... (AT) kbcomputer (DOT) com wrote: Nullable columns are in general evil, broken, and wrong. Karl I have a few "database coders" (I certainly would call them programmers -or- analysts) who don't grasp that concept. one, btw, I heartliy support. If I hear one of them whine one more time about "needing it as a place- holder because I don't *have* a value (yet)", I may have to employ larger caliber educational tools.... |
#15
| |||
| |||
|
|
Martin Bowes wrote: We have many programs which use the old style 'not in' queries On what basis is "not in" out-moded and "outer join" modern? Seems to me JOIN is a relational Join to permit a relational Project and NOT IN is an existence test, a relational Difference. I don't see what's "modern" about, ahem, misusing OUTER JOIN to do what NOT IN expresses more clearly. |
#16
| |||
| |||
|
|
OldSchool wrote: On Aug 5, 7:30 am, Karl & Betty Schendel <schen... (AT) kbcomputer (DOT) com wrote: Nullable columns are in general evil, broken, and wrong. Karl [snip] well, they may be evil (not that I see that as a bad thing, bwahahahaha), but we certainly need them in *our* database. Not as a placeholder for future things, but because we have a century or more of data readings where not every record *had* all the possible bits of data. And, as the instruments became more capable over the decades, more and more fields were added and recorded. We do, however, still have measurements taken in the 1880s with a tape measure and a stick. Mixed in there with readings made on the most modern automated sensors and fed directly into the system. And no, we don't have hte resources to completely redesign everything from the database to the applications to the workflow processes of 11,000 technicians and hydrographers. ;-) |
#17
| |||
| |||
|
|
J. F. Cornwall wrote: OldSchool wrote: On Aug 5, 7:30 am, Karl & Betty Schendel <schen... (AT) kbcomputer (DOT) com wrote: Nullable columns are in general evil, broken, and wrong. Karl [snip] well, they may be evil (not that I see that as a bad thing, bwahahahaha), but we certainly need them in *our* database. Not as a placeholder for future things, but because we have a century or more of data readings where not every record *had* all the possible bits of data. And, as the instruments became more capable over the decades, more and more fields were added and recorded. We do, however, still have measurements taken in the 1880s with a tape measure and a stick. Mixed in there with readings made on the most modern automated sensors and fed directly into the system. And no, we don't have hte resources to completely redesign everything from the database to the applications to the workflow processes of 11,000 technicians and hydrographers. ;-) I wouldn't ordinarily presume to comment on how someone else's business processes work, but in this case you are offering an example of where it is desirable to use nullable columns. Without raking over the whys-and-wherefores yet again, nullable columns are deplorable and to be avoided. Usually it is easy, sometimes it isn't, but they are never good. One would have to offer an *extraordinarily* good counter-example to move me one inch on this. I don't know if your database is used for research purposes, but if it is, your example is not a good one. Using nullable columns to permit different instrument records to be spliced is scientifically very poor practice. Many peer reviewers would express their disapproval more forcefully than I have if they were shown a paper that did it without extremely elaborate accounting that is made harder, not easier, by consolidating the data in one table. OK, I take your point; money is tight. But using nulls is not in any way desirable. They are like a life-jacket; better than nothing but really unpleasant to have to use for real. |

![]() |
| Thread Tools | |
| Display Modes | |
| |