<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://docs.optrix.com.au/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>ARDI Documentation - sql</title>
        <description></description>
        <link>https://docs.optrix.com.au/</link>
        <lastBuildDate>Tue, 16 Jun 2026 02:12:37 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://docs.optrix.com.au/_media/wiki:dokuwiki.svg</url>
            <title>ARDI Documentation</title>
            <link>https://docs.optrix.com.au/</link>
        </image>
        <item>
            <title>JOIN</title>
            <link>https://docs.optrix.com.au/sql:join</link>
            <description>JOIN

In ARDI SQL queries, the JOIN select property doesn&#039;t join queries - it instead joins ASSETS via their relationships.

It takes the form of &#039;JOIN &lt;relationship&gt; ON &lt;down&gt;&#039;. So for example, the below query...


SELECT &#039;Speed&#039; FROM &#039;Machine&#039; JOIN &#039;Location&#039; ON &#039;down&#039;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>RAW</title>
            <link>https://docs.optrix.com.au/sql:raw</link>
            <description>RAW

The command &#039;RAW&#039; immediately after the SELECT instructs ARDI to return raw sample data, rather than trying to interpolate it.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>RECENT</title>
            <link>https://docs.optrix.com.au/sql:recent</link>
            <description>RECENT

The RECENT filter is used to restrict the time range to a span relative to the current time. 

The syntax is RECENT(&lt;span&gt;)

The span is a human-readable string describing the span of time. For example, &#039;1 day&#039;, &#039;7 days&#039;, &#039;30 minutes&#039; are all valid values.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>SAMPLES</title>
            <link>https://docs.optrix.com.au/sql:samples</link>
            <description>SAMPLES

This keyword restricts the total number of records returned. SAMPLES 100 will result in a query of only 100 samples.

Note that the response is not guaranteed to be that number of samples. In some cases the ARDI driver might ignore the instruction, in others the results might be padded with additional values (returning 102 rather than 100 records),</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>SELECT</title>
            <link>https://docs.optrix.com.au/sql:select</link>
            <description>SELECT

Syntax

The query should be in the form of...

SELECT [RAW] &lt;comma-separated property list&gt; FROM &lt;comma-separated asset list&gt; [ WHERE &lt;date range or RECENT&gt; [SPAN x] [SAMPLES x]]

Where asset and property names contain spaces, you should enclose your name in single quotes.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>SPAN</title>
            <link>https://docs.optrix.com.au/sql:span</link>
            <description>SPAN

Unless you&#039;re making a RAW request, your query will return interpolated data, giving you the average values across windows of time.

Using SPAN, you can control the size of the time window.

Time is measured in seconds, so SPAN 120 will ensure that there is 120 seconds (2 minutes) between each sample in your results.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>ARDI SQL Addon</title>
            <link>https://docs.optrix.com.au/sql:welcome</link>
            <description>ARDI SQL Addon

The ARDI SQL addon provides a simple and more familiar way for people to access tables of ARDI data.

It&#039;s designed for people who want to get quick and easy access to ARDI data and are already familiar with SQL, and who don&#039;t need the extra capabilities of AQL.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
    </channel>
</rss>
