Как вернуть все строки таблицы User
, когда
1. a row has not any match with join table ex **UserDetails**
2. a row has a match in **UserDetails**, check some condition ex: user location is **IND**
Пример таблицы
User
-----------------------
id name
-----------------------
1 Hearaman
2 Ramse
3 Temmy
4 Robert
UserDetails
-----------------------------
id user_id location
1 3 USA
2 4 IND
Expected results
--------------------------
id name location
--------------------------
1 Hearaman null
2 Ramse null
4 Robert IND