• The Dixie Flatline (10/11/2012)


    If I understand you, you want to have a default value to be returned whenever no value is specified.

    Select order_nbr, field1, field2, field3

    from table

    where order_nbr = isnull(@Ord_nbr,'xxxxxx')

    That's the way I understand it too.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events