Hi,
I've a query with columns TRef (Primary Key), SQuota, SPSQuota, SessionCnt. I need to build a query to apply the below criteria and then sort them in order of effectiveQuota.
if (SPSQuota x SessionCnt) >= SQuota then
effectiveQuota = SQuota
else
effectiveQuota = (SPSQuota x SessionCnt)
Pls. find the attached test data for the above work.
Welcome any advice on this.
I've a query with columns TRef (Primary Key), SQuota, SPSQuota, SessionCnt. I need to build a query to apply the below criteria and then sort them in order of effectiveQuota.
if (SPSQuota x SessionCnt) >= SQuota then
effectiveQuota = SQuota
else
effectiveQuota = (SPSQuota x SessionCnt)
Pls. find the attached test data for the above work.
Welcome any advice on this.