• Don't use function in the where clause. That will slow down the performance by disabling the indexes. Do as Luiz mentioned.

    --

    SQLBuddy