Have accountId ={001,3456,78902,456}
I wanted to get the details of these accountId
from existing table using IN
clause and a left join on
operation, how should I form the query? Being new to DB end I am not able to put the correct pieces together:
select t1.col2, case when CASE WHEN t1.col3 is null THEN 'False' ELSE 'True' END as value
FROM table2 t2 left join table1 t1 on t2.col1=t1.col1
WHERE accountID IN (001,3456,78902,456); //The query is wrong because, I wanted to map using those accountID and get the data?
Any quick help on forming the query would be great
The Existing table have accountId
as one of the columns.