SQL Query
You can create SQL value and alert queries via the SQL-Panel in WinCC OA. For more information see chapter Basics SQL panel.
By using the CTRL SQL functions, you can execute value queries on data points and elements. For more information see chapter Basics SQL in Control.