• SELECT ID, NAME

    FROM EMP_TBL

    INTERSECT

    (SELECT '1','foo1'

    UNION ALL

    SELECT '2','foo2')

    ____________________________________________________

    Deja View - The strange feeling that somewhere, sometime you've optimised this query before

    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537