tpuproxy/queries/slot_ts.sql

10 lines
276 B
MySQL
Raw Normal View History

2022-09-09 06:34:02 -07:00
WITH CAST(timestamp, 'Nullable(DateTime)') AS ts
SELECT
slot,
minIf(ts, type = 'firstShredReceived') AS first,
minIf(ts, type = 'completed') AS completed,
minIf(ts, type = 'optimisticConfirmation') AS confirmed
FROM slot_status
GROUP BY slot
ORDER BY slot ASC