använd ELLER:
select * from yourTable
where @test = '' OR Agent = @test
om @test kommer med nullvärde (istället för '' ), måste du använda:
select * from yourTable
where @test is null OR Agent = @test
använd ELLER:
select * from yourTable
where @test = '' OR Agent = @test
om @test kommer med nullvärde (istället för '' ), måste du använda:
select * from yourTable
where @test is null OR Agent = @test