About 95,200 results
Open links in new tab
  1. How do I check if a Sql server string is null or empty

    Select Coalesce(listing.OfferText, company.OfferText, '') As Offer_Text, from tbl_directorylisting listing Inner Join tbl_companymaster company On listing.company_id= company.company_id But I want to …

  2. Replacing NULL with 0 in a SQL server query - Stack Overflow

    For those few using SQL Server 2000 or 2005 ISNULL is SQL Server 2008 and above.

  3. sql - Using IsNull () in a WHERE clause - Stack Overflow

    Feb 10, 2017 · Using IsNull () in a WHERE clause Asked 8 years, 9 months ago Modified 6 years, 1 month ago Viewed 11k times

  4. SQL query, if value is null then return 1 - Stack Overflow

    87 I have a query that is returning the exchange rate value set up in our system. Not every order will have an exchange rate (currate.currentrate) so it is returning null values. Can I get it to return 1 …

  5. How to use isnull in where clause of SQL - Stack Overflow

    Nov 11, 2022 · Generally, it's recommended to do not use non-standard functions when not required. I agree your query with OR should be prefered, but even if you want to avoid that, better use …

  6. Is there is any Performance issue while using ISNULL() in SQL Server?

    Jan 19, 2012 · So, when using isnull () in a where-clause, evaluate if it prevents the query optimizer from using an index. If so, consider creating a computed column with the result if isnull (col1, 0) and index …

  7. What is the Oracle equivalent of SQL Server's IsNull() function?

    Aug 19, 2010 · In SQL Server we can type IsNull() to determine if a field is null. Is there an equivalent function in PL/SQL?

  8. How to replace (null) values with 0 output in PIVOT

    I tried to convert the (null) values with 0 (zeros) output in PIVOT function but have no success. Below is the table and the syntax I've tried: SELECT CLASS, [AZ], [CA], [TX] FROM #TEMP PIVOT (SUM...

  9. sql - Select rows where column is null - Stack Overflow

    Jul 30, 2010 · SELECT * FROM customers WHERE first_name IS NULL On MS SQL Server, the ISNULL () function returns the first argument if it's not NULL, otherwise it returns the second. You …

  10. sql - TSQL - ISNULL over multiple columns - Stack Overflow

    Jun 7, 2011 · I have a simple SQL query (SQL Server 2005) where I'm selecting from a table that contains multiple columns that have BIT values. These columns are nullable so can contain NULL, 0 …