Notifications
Announcements
No record found.
Hello everyone!
I need to do smt like that...
Select count(RecID) sum(Field) from MyTable
I have to do this in one select but i dont know how. Any ideas?
Thanks!
*This post is locked for comments
Hi Juras,
I think you need to make count and sum in the same select query .
The below select query will give the both the Sales Line record count and the sum of sales quantity.
Code :
static void Test_Data(Args _args)
{
SalesLine salesLine;
select count(RecId),sum(SalesQty) from salesLine;
info(strFmt("Number of Records : %1 Total Quantity : %2",SalesLine.RecId,SalesLine.SalesQty));
}
Output :
If the above thing is not suit for you means please explain how exactly you want or if you satisfied with this answer please verify it.
Thanks,
Malleswaran
Thanks for your answer. I was trying everything, but i forget about comma sign! Thanks a lot ;)
Could you please make my answer as verified answer(verify my answer ).
Thanks in Advance,
Hello Malleswaran,
Could you help to find out the list of custom tables and System tables in the AOT.
Is there any query available to find out the list?
Karthick.M
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 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2