Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 26 lip 2013 · I'm trying to do an IF statement type function in SQL server. Where there is a NULL in the field, I want it to take a field from one of the tables and add 10 days to it. And if possible create another column and add the 30 days.

  2. 15 mar 2013 · CASE LEN(ISNULL(last_Name,'')) WHEN 0 THEN '' ELSE ' ' + last_name END AS newlastName LEN(ISNULL(last_Name,'')) measures the number of characters in that column, which will be zero whether it's empty, or NULL, therefore WHEN 0 THEN will evaluate to true and return the '' as expected.

  3. The CASEexpression goes through conditions and returns a value when the first condition is met (like an if-then-else statement). So, once a condition is true, it will stop reading and return the result. If no conditions are true, it returns the value in the ELSEclause.

  4. 16 sty 2024 · The CASE WHEN statement lets us make decisions on our data, categorizing and manipulating records based on specified conditions. Find out how to use CASE WHEN in this article. Imagine you're deciding what to wear for the day. You take out your umbrella if it's raining; if not, you leave it at home.

  5. 11 lip 2012 · Is there any better way to write the lines below in SQL Server 2005? CASE WHEN (ID IS NULL) THEN 'YES' WHEN (ID IS NOT NULL) THEN 'NO' END AS ID_Value, sql-server

  6. 2 cze 2023 · The SQL CASE statements lets you implement conditional logic directly in SQL. Learn all about the SQL CASE statement (plus examples) in this guide.

  7. There are 3 possible ways to deal with nulls in expressions: using IsNull, Coalesce or CASE. I've explained these under separate headings below! The ISNULL Function. This function substitutes a given value when a column is null. The syntax is:

  1. Ludzie szukają również