The following query is the one I was using previously… but I want to combine these two queries in order to improve the performance
select a, b, c
from table1
where d LIKE 'xxx'
and f like 'yyyy'
order by b desc;
I’m executing the above query and reading values.
For every value of b from above query again executing the below query in a loop.
select count(*)
from table2 where b=? AND js_email_id IN
(
select js_email_id
from js_initialsignup
where UCase(jsaccountstatus) LIKE UCase('live')
AND UCase(js_status) LIKEUCase('accepted')
)
How can I combine both queries and get count and values at a time?
1 Answer