Skip to content

Instantly share code, notes, and snippets.

@anna-anisienia
Created October 5, 2020 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anna-anisienia/eb12ce3ba1e8c9dbff6da08b1fdf74e0 to your computer and use it in GitHub Desktop.
Save anna-anisienia/eb12ce3ba1e8c9dbff6da08b1fdf74e0 to your computer and use it in GitHub Desktop.
-- Get the 100 most recently added data points
SELECT time, truck_id, model,
measure_name, measure_value::double
FROM "sampleDB"."IoT"
ORDER BY time DESC LIMIT 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment