Hi so I'm trying to learn sql and am working on a small exercise. I want to return all the ids from a table that have a date after 2014. Heres what I have:
CREATE TABLE Pick_Up(
eid INT,
pid INT,
cid int,
datetime DATETIME,
);
INSERT INTO Pick_Up (eid, pid, datetime)
VALUES (3, 7,'2015/4/23 16:35:05'),
(4, 6,'2016/3/20/ 9:05:45');
SELECT P.pid
FROM pick_up P
WHERE year(p.datetime)> '2014';
And I thought it would return both tuples but when I run it i get nothing. IF anyone could help by telling me what I can do to have it return both values that would be amazingly awesome!