-- declare the variables
declare @custname is varchar(30)
,@custnumber is varchar(10)
,@custstate is varchar(02)
;
-- set values for the variables
set @custname = 'SomeName';
set @custnumber = '0012345';
set @custstate = 'AB';
-- execute the query
Select * from customer_table
where customer_name = @custname
and customer_number = @custnumber
and customer_state = @custstate;