Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Where clause depending of parameter

    Hi Lina,

    You can use case when statement for your reqirment.

    declare @parm smallint

    set @parm =10

    select * from table1 where id = case @parm  when null then null else @parm end

    thanks

    sahu

Viewing post 1 (of 1 total)