top of page

9/23/26

Extended SQL Query Features

This demo runs the extended query features added in Machbase Neo 8.7 (Multi Database, CTE, ARRAY types, and BINARY literals) directly in the web SQL editor.

🎬 Demo |

🔗Source | 


This video demonstrates four extended query features added in Machbase Neo 8.7 by running them directly in the web SQL editor using water treatment plant pump equipment data.


First is Multi Database. Multiple databases can reside on one server, and tables in other databases are referenced as database.owner.table. A single query joins the default database containing time-series sensor data with an operations database containing equipment master data, showing the responsible team alongside the average temperature for each rack.


Next is CTE. Use the WITH clause to name queries and break them into stages, then run multiple CTEs in which later CTEs filter earlier results. Next, use INSERT ... WITH ... SELECT to store the CTE results directly in a summary table in another database, then query the stored row count to verify the result.


Finally, ARRAY types and BINARY literals. Insert four channels of waveform data into a DOUBLE[4] column as a single row and access elements by their zero-based index. The demo also shows inputs being rejected when their element count differs from the declared size. For BINARY literals, enter hexadecimal X'0A0B0C0D', binary B'00001010', and octal O'012', then check the stored values and byte counts.


Learn how a single SQL statement can handle cross-database joins, staged queries, arrays, and binary values, without fetching and assembling data through multiple application requests.


#Machbase #MachbaseNeo #Neo8 #TimeSeriesDB #TSDB #SQL #Database #DataPlatform #Binary #Array #CTE #Multidatabase

View Contacts
bottom of page