usa O:
select * from yourTable
where @test = '' OR Agent = @test
se @test fornito con valore nullo (invece di '' ), devi utilizzare:
select * from yourTable
where @test is null OR Agent = @test
usa O:
select * from yourTable
where @test = '' OR Agent = @test
se @test fornito con valore nullo (invece di '' ), devi utilizzare:
select * from yourTable
where @test is null OR Agent = @test