Skip to content

Add more SQL examples how to query database #209

Open
@MRIIOT

Description

@MRIIOT

example:

SELECT
  substring(path,'$device/(.*)') as attribute,
  time,
  value,
  lower(units) as units
FROM history_all
WHERE
  path IN ('$device/Availability', '$device/LoadCondition', '$device/Message', '$device/FunctionalMode',
  '$device/SystemCondition', '$device/Controller/EmergencyStop', '$device/Axes/Rotary[C]/RotaryMode')

  and $__timeFilter("time")
order by time desc
limit 200

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions