Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 8 mar 2021 · select jobs, decode(salary, null, 0, salary) as salary from your_table Or CASE select jobs, case when salary is null then 0 else salary end as salary from your_table

  2. DROP TABLE null_test_tab; CREATE TABLE null_test_tab ( id NUMBER, col1 VARCHAR2(10), col2 VARCHAR2(10), col3 VARCHAR2(10), col4 VARCHAR2(10) ); INSERT INTO null_test_tab values (1, 'ONE', 'TWO', 'THREE', 'FOUR'); INSERT INTO null_test_tab values (2, NULL, 'TWO', 'THREE', 'FOUR'); INSERT INTO null_test_tab values (3, NULL, NULL, 'THREE', 'FOUR ...

  3. The Oracle NVL() function allows you to replace null with a more meaningful alternative in the results of a query. The following shows the syntax of the NVL() function: NVL(e1, e2) Code language: SQL (Structured Query Language) ( sql )

  4. If you call a SQL function with a null argument, the SQL function automatically returns null. The only SQL functions that do not follow this rule are CONCAT, DECODE, DUMP, NVL, and REPLACE. SQL functions should not be confused with user functions written in PL/SQL.

  5. 16 lut 2012 · I made an assumption about the Decode comparison following the "rule", but now notice the "disclaimer" at the end of the function's Purpose. In a DECODE function, Oracle considers two nulls to be equivalent. If expr is null, then Oracle returns the result of the first search that is also null.

  6. NVL lets you replace null (returned as a blank) with a string in the results of a query. If expr1 is null, then NVL returns expr2 . If expr1 is not null, then NVL returns expr1 .

  7. 4 mar 2011 · Some values are null in salary column.I want to replace null value with zero and make the addition. Like: I want to add 15 where for emp 1 and his sal is null. it should be 0+15=15

  1. Ludzie szukają również