& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Build and run queries to select or update network objects.
In InfoAsset Manager, SQL (Structured Query Language) is used for selecting and updating network objects using specified criteria.
An SQL query consists of clauses, separated by semi-colons. Each clause can do one of the following:
These operations are built with syntax keywords, such as SELECT, COUNT, SET, CLEAR, DELETE, UPDATE, and DESELECT.
Queries are built in the SQL dialog.
To build a query:

TIP: Since this is a long drop-down, type P to quickly jump to that point in the alphabetical list.

The query text should now be:
SET user_number_10
Next, make the set field equal to the survey length from the CCTV Survey table. Use the query builder to help construct the rest of the query.


The query is complete and should be set as the following:
SET user_number_10 = cctv_surveys.surveyed_length

To save the query for later use, if needed:

To run the query:

To see the results of the query:

Another SQL query that can be built and run is to set the street field of the node based on the Manhole Survey, where it is not currently set on the asset:
SET street = manhole_surveys.street WHERE street = NULL
Or, build a similar query for pipes from CCTV Surveys:
SET location = cctv_surveys.road_name WHERE location = NULL
TIP: Run various queries across multiple tables together. Combine queries with a semi-colon at the end of each query syntax.
TIP: Add comments or ignore lines of syntax by adding two backslashes (\\) at the beginning of a line. Everything on the same line after the backslashes will be displayed in green and ignored when running the query.
