I am querying a table using the upper function, the table has an index on the column, but UPPER negates the use of this index.
select exposureid from anthony where UPPER(exposure) = 'ANTHONY';
If I issue:
create index ex on anthony (UPPER(exposureid))
The error returned is:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '('.
Oracle allows this, is MS SQL Server unable to deal with this?
select exposureid from anthony where UPPER(exposure) = 'ANTHONY';
If I issue:
create index ex on anthony (UPPER(exposureid))
The error returned is:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '('.
Oracle allows this, is MS SQL Server unable to deal with this?