question

gmi georges avatar image
0 Likes"
gmi georges asked Sebastian Hemmann commented

ROW_NUMBER as a SQL keyword

How to use this keyword ? Example ?

FlexSim 17.1.1
query
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jacob Gillespie avatar image
4 Likes"
Jacob Gillespie answered Sebastian Hemmann commented

Let's say you have a table like this:

The following query would give you all the columns of row 1:

  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:

  1. Table result = Table.query("SELECT ROW_NUMBER FROM GlobalTable1 WHERE [Col 1] = 1");

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.