Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Dynamic Where Clause

    quote:


    FYI

    Just solved :

    select PowerID, b.BookID, b.name

    from t_Power dp join t_book b On dp.bookid = b.bookid

    where @ID =

    CASE @SURPRESS

    WHEN 1 THEN

    b.bookid

    ELSE

    @ID

    END

Viewing post 1 (of 1 total)