Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

Retrieving items in an order based on an attribute of a relationship

$
0
0

Hi all,

Here is my problem:

I have two item types IT1 and IT2 and a relationship R1 between them with an integer attribute AR1 in the R1 item type.

I would like to retrieve the IT2 items which are in relationship with a given IT1 item but in an order defined by AR1.

Here is my AML query:

<AML><Item type='IT1' action='get' where="IT1.id in (select related_id from R1 where R1.source_id = 'A5C0EE7EFAF24392A86CFE178341EC86' order by R1.AR1 asc)"></Item></AML>

I got the following error message:

"The ORDER BY clause is not valid in views, inline functions, derived tables, and subqueries, unless either the TOP or OFFSET and FETCH clauses are also specified."

Any idea how to fix my query?

Thanks

Jeroen


Viewing all articles
Browse latest Browse all 1103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>