
Enviado em 06/03/2017 - 16:35h
Caros,
date id_tipo
2017-01-10 07:19:21.0 3
2017-01-10 07:19:22.0 3
2017-01-10 07:19:23.1 3
2017-01-10 07:19:24.1 3
2017-01-10 07:19:25.0 3
2017-01-10 07:19:26.0 5
2017-01-10 07:19:27.1 3
2017-01-10 07:19:28.0 5
2017-01-10 07:19:29.0 5
2017-01-10 07:19:30.1 3
2017-01-10 07:19:31.0 5
2017-01-10 07:19:32.0 3
2017-01-10 07:19:33.1 5
2017-01-10 07:19:35.0 5
2017-01-10 07:19:36.1 5
2017-01-10 07:19:37.1 5
SELECT distinct min(min(date)) over w as inicio, max(max(date)) over w as fim,
id_time_type_farm_structure
from tmp
GROUP BY id_time_type_farm_structure
WINDOW w as (
PARTITION BY id_time_type_farm_structure
)
order by inicio;
inicio fim id_time_type_farm_structure
2017-01-10 07:19:21.0 2017-01-10 07:19:32.0 3
2017-01-10 07:19:26.0 2017-01-10 07:19:37.1 5
Como atualizar sua versão estável do Debian
Cirurgia para acelerar o openSUSE em HD externo via USB
Void Server como Domain Control
Quer auto-organizar janelas (tiling) no seu Linux? Veja como no Plasma 6 e no Gnome
Copiando caminho atual do terminal direto para o clipboard do teclado
Script de montagem de chroot automatica









