No. This is not true.
You can create a calculated column and create an index for it:
alter table <table> add duration as datediff(hour, start_date, end_date);
create index on <table>(duration);
Of course, the index will be most useful if durationused in where, a onor order by.
source
share