Viewing post 1 (of 1 total)
Try This...
CREATE PROCEDURE sp_Modify_Where
@Open bit = 1
AS
select
*
from
mytable
where
(@Open = 1 AND closed_date is null) OR
(@Open = 0 AND closed_date is not null)
Edwin Stephenraj.
December 21, 2004 at 8:01 am
#534619