I have table with field update_ version which can have null and some value..
Select * from Employee where employee_id = '1234' and updated_version is null
Select * from Employee where employee_id = '1234' and updated_version ='1'
I have to combine both the queries
I have tried like this but didn't work.
Select * from Employee
where employee_id = '1234'
and updated_version = (select case when updated_version is null
then NULL
else updated_version
end)
Note: I wil get inputs for employee id and updated_version from other table
Sorry for the Confusion. The updated Version value is not only 1 and null. It can be any value which i'll get from another table. So what ever value i'm getting from other table, I have to query with that condition in Employee table, to get the appropriate result. Not all the result.