Complex x++ to AOT queries using Ranges.

Recently I came to know that we can make some complex queries in the AOT as well by adding the ranges.

For example

SELECT * FROM EmployeePosition

JOIN * FROM PositionDetailTable

WHERE EmployeePosition.ValidFrom <= PositionDetailTable.ValidFrom

&& EmployeePosition.ValidTo <= PositionDetailTable.ValidTo

Attached is the sample AOT query that will produce the same result. you need to download and remove the .doc extension from the file.



Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: