• ChrisM@Work (5/3/2013)


    IgorMi (5/3/2013)


    ChrisM@Work (5/3/2013)


    IgorMi (5/3/2013)


    Hi

    SELECT sum(CONVERT(float, ft.amount))

    FROM filetransaction ft

    WHERE ft.fileid <>332 and ISNUMERIC(ft.amount)=1

    Check this also http://www.sqlservercentral.com/articles/IsNumeric/71512/

    Regards

    IgorMi

    Which of those two filters will SQL Server apply first?

    Queries having WHERE clause connected by AND operators are evaluated from left to right in the order they are written.

    What is the source for this statement? It's completely wrong.

    Aham

    I now see. It should be:

    SELECT sum(CONVERT(float, ft.amount))

    FROM filetransaction ft

    WHERE ISNUMERIC(ft.amount)=1

    I copied ft.fileid <>332 mistakenly.

    Igor Micev,My blog: www.igormicev.com