mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 15:49:25 +01:00
6 lines
138 B
SQL
6 lines
138 B
SQL
CREATE VIEW batteries_current
|
|
AS
|
|
SELECT battery_id, MAX(tracked_time) AS last_tracked_time
|
|
FROM battery_charge_cycles
|
|
GROUP BY battery_id
|