Vishal
2/15/2006 10:01:00 AM
U can chk this code here for getting Top 10 records, there is no syntax in
X++ for getting Top 10 records so we used a counter for the same.
static void Top10(Args _args)
{
InventSum lInventSum;
Counter lCtr;
;
WHILE SELECT ItemId, sum(AvailPhysical) FROM lInventSum
GROUP BY ItemId
{
if(lCtr == 10)
break;
print lInventSum.ItemId, ' ', lInventSum.AvailPhysical;
lCtr++;
}
pause;
}
--
Vishal
"crane" wrote:
> I need inquire top 10 from table order by Qty,How to inquire ?
> Thanks!