I'm trying to get a percentage using two select queries. The below query is not giving the percent.
individual queries are working fine.
Can you please let me know how to fix this query?
select ((select count(ContainerID)*100 as B
from orion.containerMembers where Name like '%customName%' and Status = 1)/(select count(ContainerID) as A from orion.ContainerMembers where Name like '%CustomName%')) as percent