Hello Experts,
I need your help and guidance to convert my SQL query to fetchxml which I need in my Report.
SELECT a.name FROM msft_employee
INNER JOIN account AS a ON msft_employee.msft_company = a.accountid
WHERE msft_employee.statecode = 0 AND msft_employee.createdon = lastxyears(1)
group by a.name having COUNT(a.name)>=100
Here's what I am trying to achieve - Fetch All Accounts which has more than 100 openend/active employees created during last 1 year.
I did tried to use SQL4CDS plugin from xrmtoolbox but it does not give single fetchxml.
Thanks,
Bipin