& Construction
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing
Professional CAD/CAM tools built on Inventor and AutoCAD
Build a complex SQL query.
Tutorial resources
These downloadable resources will be used to complete this tutorial:
In its simplest form, SQL can be used to select objects for which an expression is true. In this exercise, you write a more complex SQL query to determine the count of the total number of minutes that the customer points experience pressure below 5 meters.
Note: If the run icon on the left of the simulation is greyed out, right-click the run and select Re-run.
In the popup, name the stored query “Customer Minutes Lost”.
A notification appears, stating that the syntax is valid.
The SQL window closes, and an SQL results grid appears. In this case, there are zero minutes when customers experience less than 5 meters of pressure.
Now, you can repeat this query with the Pipe Break scenario. Pipe 103874 has been set to rupture during the simulation.
To rerun the query:
Again, an SQL results grid appears.
Notice the difference in the result between the Baseline run and the Pipe Break run. Once the pipe has ruptured, there is significantly more time that customers experience less than 5 meters of pressure.
Be aware that you can find additional SQL syntax explanations and complex statements, as well as a list of SQL functions, in the WS Pro help pages on the Autodesk website.