Hi there
I have query in which i need to generate custom fields on the basis of inner queries, Kindly tell me how should I implement in self servicing, below is my query
Select MatchMaker.MatchMakerID,
LeadCount=(Select COUNT(Distinct(clientId)) from clients where Status='n' and IsDeleted<>1 and MatchmakerCode=MatchMaker.MatchMakerID),
ClientLeadCount=(Select COUNT(Distinct(clientId)) from clients where Status='l' and IsDeleted<>1 and MatchmakerCode=MatchMaker.MatchMakerID),
Clients=(Select COUNT(Distinct(Clients.ClientID)) from Clients
inner join Client_MatchMaker on Clients.ClientID =Client_MatchMaker.ClientID and(
Clients.MatchmakerCode= MatchMaker.MatchMakerID or Client_MatchMaker.MatchMakerID= MatchMaker.MatchMakerID))
from MatchMaker