HiI have a stored procedure that I want to pass in a parameter that would enable me to retrieve different result from a query.This is the query..  SELECT     COUNT(ID) AS Qty  FROM         dbo.tbl_Cards WHERE (IsFetched = 0)
If I pass @CheckMe Int = 1 then the query should be ..  SELECT     COUNT(ID) AS Qty  FROM         dbo.tbl_Cards WHERE (IsFetched = 0) AND (Duplicate = 0)
If the @CheckMe is different from 1 the query should be..  SELECT     COUNT(ID) AS Qty  FROM         dbo.tbl_Cards WHERE (IsFetched = 0)
What do I need to do to get this to work?