1

Is any diff in below query in term of performance??

select COLUMN1,column2 from table
where COLUMN1 is not null
and COLUMN1 <>'';

select COLUMN1,column2 from table
where isnull(Column1,'')<>'';
Sam
  • 61
  • 1
  • 6

1 Answers1

0

You can obtain an execution plan for your query to determine the cost of that operation.

How to do it and the output format really depends on each database product.

In the case of SQL server it may look like: execution plan

My intuition tells me that operation in particular should not be expensive. What would rather be expensive is to query a column that is not indexed.

arboreal84
  • 2,086
  • 18
  • 21