I have a table with fields dateand time. I find it difficult to understand how I deal with this, in part, because I do not understand how time can be converted into a number. I made a table using the following command:
CREATE TABLE tracking.time_record
(
date date,
"time" time without time zone,
id character(100)
)
An example of my data:
"2012-04-18" | "18:33:19.612" | "2342342384"
How to run a query so that I can check all the values idthat have a time value > 10 pmon a specific day, for example?
I understand that since my time is stored in a character type variable, something like this does not work:
SELECT * FROM tracking.time_record
WHERE "time" > "04:33:38.884" AND date > "2012-04-18"
(This is my first time and date tracking study - I probably should have chosen different column names)
source
share