I\'m wishing I could do something like the following in SQl Server 2005 (which I know isnt valid) for my where clause. Sometimes @teamID (passed into a stored procedure) wi
You can do that without a case:
SELECT Team.teamID FROM Team WHERE (@teamid = 0 AND Team.teamID > 0) OR (@teamid <> 0 AND Team.teamID = @teamid)