Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader