SQL and Array Data

There are many examples in InfoAsset Manager of a network object containing an array of data. The most obvious one is the Bends data field, which stores the intermediate (x,y) pairs that define the bends in a link object.

These arrays can take two forms:

Value Arrays

If you carry out a comparison with a value array, InfoAsset Manager will make the comparison with all the elements in the array. This is best explained with an example.

Click on the image below to reveal the example.

Closed

Structure Arrays

You can access the fields in a structure array by name and treat them in the same way as any other object field. The easiest way to do this is to use the list in the SQL Field box on the SQL Dialog to choose the data item. The syntax for fields in a structure array is array.field.

Please note

Be careful not to confuse linked objects with array data as the syntax is the same - array.fieldand linked_object.field.

SQL Syntax

Selecting Objects Using SQL

Updating Data Using SQL

SQL and Connected Objects

SQL and Spatial Searches

SQL Examples