Can I create an Index on a column with functions or analytical functions?
I have a table ABC
with columns XXX updateddatetime, YYY updatedusername. I am trying to create indices as shown below
CREATE INDEX idx_Cname1
ON ABC(UPPER(updatedusername));
CREATE INDEX idx_Cdate1
ON ABC(YEAR(updateddatetime));
I just get an error
Incorrect syntax near '('
Is it possible to create index as shown above. Also, can I create an index on columns with analytical functions like LEAD, LAG, etc.,
Thanks in advance!