|
Understanding and use of a NULL concept is required when using SQL. If I create a LEFT OUTER JOIN sql query, project some columns from theNobody said anything about not understanding NULL. We were talking about using NULL to store values in the database.
secondary dial and some of the join conditions have no match in the
secondary dial, the result set will include NULLs even though the tables
being joined have no NULL capable fields. If this query is in embedded SQL, the developer has to handle this case.
Traditional RLA developer may handle it by forcing the secondary dialWhat have you got against COALESCE? They certainly didn't add it to the language for RPG programmers <smile>.
projections to a non-NULL field using COALESCE, but that is not the best way to handle it. Using null indicators is.
Again, if no SQL access is used, value of understanding and use of NULLAnother reason I hate these discussions. Because I don't like NULLs, that means I don't understand them or SQL. Oh pshaw, Elvis <grin>.
diminishes, although it doesn't disappear.
What I think has not been mentioned yet in this thread is that most of thePlease review my posts on the subject and find one place where I suggested that programmers should not understand NULL. On the contrary, I think programmers SHOULD understand NULL - that way they'll be more likely to use them appropriately. I think you yourself, Elvis, might benefit from reading Chris Date and Dr. Codd's writings on the subject to understand their views, which differ from your own.
other database platforms use SQL exclusively to access the database, so
developing understanding of these types of concepts could benefit developers whose retirement is not just around the corner by making them more versatile and marketable. Or simply able to help their non-i development team.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.