Announcements
No record found.
Hi Everybody
How can we use at the same time minof and maxof in one sql statement ?
like doing select maxof(AccountingFate), minof(AccountingDate) from .... ?
You cant, result is saved into the field, so the easiest way is to do 2 select statements
Hi,
I have faced the same requirement and I achieved by creating a view with string computed column.
public static server str MinAccountingDate() { tableName viewName = tableStr(View);
return SysComputedColumn::min(SysComputedColumn::returnField(viewName, identifierStr(viewDatasourceTable) , fieldStr(viewDatasourceTable.AccountingDate)));
}
public static server str MaxAccountingDate(){tableName viewName = tableStr(View);
return SysComputedColumn::max(SysComputedColumn::returnField(viewName, identifierStr(viewDatasourceTable) , fieldStr(viewDatasourceTable.AccountingDate)));
Yes that's why I did, but wished to do it proprly .. !
Thanks
Thanks Julian for your suggestion
You're welcome, just let me know if you need more help..
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 528 Most Valuable Professional
André Arnaud de Cal... 424 Super User 2026 Season 2
CU10121822-0 374