1
I need help, I’m a beginner.
I want to catch the difference between minutes and seconds between two columns on the same table, tried the cases below but unsuccessfully. I’m trying to make a SELECT
inside the Grafana, extracting directly from a Postgresql base.
SELECT
justify_hours(column_A,column_B)
FROM table
SELECT
EXTRACT(DAYS FROM (coluna_A-coluna_B)) as dias,
EXTRACT(HOURS FROM (coluna_A-coluna_B)) as horas
FROM tabela
SELECT column_A, AGE(column_A,column_B) FROM table WHERE AGE(column_A,column_B) >='1 min'