SQL Where clause add both conditions are in a single query like
declare @number = null
--if @number is null then
1)select * from table where t.number is null
--if @number is not null then
2)select * from table where number = @number
= select * from table where?
all are in within the function
and most important
declare @number = null,@age = 2
then