We detected a mistake in the table, thank you for your help.
Timestamps are a very precise way to define a point in time. This is why using the equality sign (
=) with them isn't a good idea. Two timestamps may differ by a single second and the condition on equality will not be satisfied. Still, you can use comparisons with
!= etc. to compare two columns (just as you did) or a column compared to a constant value. Do we have to be very precise when providing the constant value? Not really. Take a look:
WHERE launched > '2015-01-01';
As you can see, we compared a timestamp with a date. How is this possible? Well, our database converts the date we provided to a timestamp by adding as many zeroes as necessary. For instance:
- '2015-01-01' will become '2015-01-01 00:00:00',
- '2014-02-12 12:00' will become '2014-02-12 12:00:00'.
Convenient, isn't it?