What's better to use when comparing columns that could contains values with different cases? Is Collate faster? Just trying to figure this out because in our project with tons of data comparisons. we use:
select * from table t1, table t2 where
t1.col1 collate SQL_Latin1_General_CP1_CI_AS = t2.colb collate SQL_Latin1_General_CP1_CI_AS
why we can't rewrite as:
select * from table t1, table t2 where
UPPER(t1.col1) = UPPER(t2.colb)