D365FO – AX – Order By in Select Statements

SalesTable salesTable;

select salesTable index hint CustIdx

order by CustAccount

where salesTable.CustAccount >= ‘3000’ && salesTable.CustAccount <= ‘4000’

&& salesTable.FixedDueDate >= 12\12\2004 && salesTable.FixedDueDate <= 05\05\2009;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s