skip to Main Content

Format Date with timezone (PostgreSQL)

I have the following query which I'm unable to solve: SELECT DISTINCT m.id, TO_CHAR(m.date, 'YYYY-MM-DD')::timestamp AS formatted_date, FROM table.match m In the formatted_date field I get the following output: 2012-12-02T00:00:00.000Z Does anyone know how to format it as to get…

VIEW QUESTION

MySQL optimizing query for averaging

I have database like this (in real there are over 30 different sKey): +----+------+------+---------------------+ |ID | sKey | sVal | timestamp | +----+------+------+---------------------+ | 1 | temp | 19 | 2023-07-14 20:32:06 | | 2 | humi | 60 |…

VIEW QUESTION
Back To Top
Search