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
If you could treat Null as all records:
WHERE Team.teamID = ISNULL(@teamid, Team.teamID)