We used Stored Procedure
on our Queries
. Some of our field got NULL value, so for us to get this value we Put the conversion of ISNULL
inside the WHERE
condition but per checking it affects the Process of our strodproc
based on the SQL performance tool
.
Ex.
SELECT * FROM tblInfo
WHERE ISNULL(fldInfo,'') <> ''
tblInfo
fldinfo
NULL
30
NULL
20
Query
SELECT * FROM tblinfo WHERE fldinfo NOT IN (30,20) - different result
SELECT * FROM tblinfo WHERE ISNULL(fldinfo,'') NOT IN (30,20) - Correct
Result
Any other Substitute process of script we can use so that we can get the value but not affecting the performance of the query.