Hi, I have aggregation function inside the link entity, it is returning total number of records, however, when the link entity has no value, there is no result returned, how can I make it return 0 when there is no value. Please advise,
<fetch aggregate="true"><entity name="contact"><attribute name="firstname" alias="firstname" groupby="true" /> <attribute name="lastname" alias="lastname" groupby="true" /> <filter><condition attribute="lastname" operator="eq" value="Manning" /> </filter><link-entity name="caution" from="customerid" to="contactid"><attribute name="startdate" aggregate="count" alias="Cautions" /> <filter><condition attribute="statuscode" operator="eq" value="1" /> </filter></link-entity></entity></fetch>