People who are aware of SQL must know that Order by clause is always written after where clause in SQL Selects.
In X++ this is different. Order by is always written before where clause.
The example code is as below.
select firstonly BookId from assetBook order by BookId desc where assetBook.AssetId == this.AssetId
Cheers.
Shujaat.
Nice, i was thinking like SQL :P
ReplyDeleteTYVM