question

kiminami avatar image
0 Likes"
kiminami asked kiminami commented

How to make a SQL filter in a Global Table and capture the first result?

Hello, I'm having trouble making a SQL filter in a Globaltable and pulling the first result from it, I've tried several syntaxes and nothing works, would anyone know how to help me?

EX: Table.query("SELECT col1 FROM Globaltable1")[1][1]

FlexSim 23.0.0
global tablesqltabela
· 1
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered kiminami commented

There's a space in the default global table's column headings so if you've not renamed them you need:

  1. Table.query("SELECT [Col 1] FROM GlobalTable1")[1][1]
· 7
5 |100000

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