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're welcome, just let me know if you need more help..
Thanks Julian for your suggestion
Yes that's why I did, but wished to do it proprly .. !
Thanks
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)));
}
You cant, result is saved into the field, so the easiest way is to do 2 select statements
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156