आप नीचे कोशिश कर सकते हैं - सीटीई का उपयोग करके
with cte1 as
(
select 'abc' as key
union
select 'pqr' union select 'xyz'
)
select keyword,case when key is null then 0 else 1 end as is_present
from keywords left join cte1 on keyword=key
आप नीचे कोशिश कर सकते हैं - सीटीई का उपयोग करके
with cte1 as
(
select 'abc' as key
union
select 'pqr' union select 'xyz'
)
select keyword,case when key is null then 0 else 1 end as is_present
from keywords left join cte1 on keyword=key