Case Statements versus coded if statements

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-03-11T22:32:55Z Indexed on 2010/03/12 4:27 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

What is more efficient - handling with case statements in sql or handling the same data using if statements in code. I'm asking because my colleague has a huge query that has many case statements. I advised her to take stress off of the DB by coding the case statements. I've found that it is more efficient...but why?

© Stack Overflow or respective owner

Related posts about sql

Related posts about asp