GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltactivedata.com — COALESCE() Using VoltDBCOALESCE()COALESCE() — Returns the first non-null argument, or null. SynopsisCOALESCE( expression [, ... ] ) DescriptionThe COALESCE() function takes multiple arguments and returns the value of the first argument that is not null, or — if all arguments are null — the function returns null. ExamplesThe following example uses COALESCE to perform two functions:
In the second usage, the SELECT statement returns the value of the column State, Province, or Territory depending on the first that contains a non-null value. Or the function returns a null value if none of the columns are non-null. SELECT lastname, firstname, COALESCE(address,'[address unkown]'), COALESCE(state, province, territory), country FROM users ORDER BY lastname; |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |