where Date=convert(datetime,'@Date',103) and Attend= case when @attendance is not null then @attendance else Attend end
where Date=convert(datetime,'@Date',103) and Attend= case when @attendance <> '' then @attendance else Attend end
Attend=COALESCE(@attendance ,Attend)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)