I have a stored procedure in which I’m using sub query, but the issue is that my sub query returns 2 values and I’ve to return all records based on these two values.
Select * from [Address] where AddressID=
(Select AddressID from PersonAddress where PersonID=
(select Claimant from [Case] where CaseID=35))
In this query AddressID returning two values and both the value having record in table, I’ve to return both the address.
How can I solve this?
Instead of
=useIN:or try
JOIN, the correct way: