× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

On Fri, Apr 8, 2022 at 7:51 AM Rob Berendt <rob@xxxxxxxxx> wrote:

COALESCE is also an option. And it might even predate IFNULL. However most people have to go to the manual to find out what that means. And it's probably even more fun to the "English as a second language" crowd.

Most people just chalk it up to the fact that programming languages
have their own jargon. Sure, some languages try harder than others to
be Englishlike, but ultimately people who use a language regularly get
used to it. Use it long enough and maybe you'll forget that it looks
weird to someone who isn't fluent in the language.

Which begs the question: Is IFNULL sql standard or should one use COALESCE?

It *raises* the question, but that has an easy answer: COALESCE is
standard and IFNULL is not. Major database systems that have IFNULL:
Db2, MySQL. Major database systems that do not: SQL Server, Oracle.

COALESCE is also more flexible in that it can accept more than two arguments.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 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.