How to use this keyword ? Example ?
Let's say you have a table like this:
The following query would give you all the columns of row 1:
Table result = Table.query("SELECT * FROM GlobalTable1 WHERE ROW_NUMBER = 1");
And this query would give you the row numbers of rows where Col 1 has a value of 1:
Table result = Table.query("SELECT ROW_NUMBER FROM GlobalTable1 WHERE [Col 1] = 1");
Also, ROW_NUMBER works like any other field name, in that you can use SQL's dot syntax to clarify the desired table when doing inner joins:
SELECT Customers.CustomerID, Orders.OrderID, Orders.ROW_NUMBER, Customers.ROW_NUMBER FROM Customers INNER JOIN Orders ON Orders.CustomerID = Customers.CustomerID
It's as if every table has a "hidden" column named ROW_NUMBER with a value that corresponds to the associated row of the table.
@anthony.johnson Could you probably also add an easy example how this works, if I want to return the Row number of a specific row of my Table depending on the Result Table I´ve created?
9 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved