1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00

Correct year syntax

This commit is contained in:
Simon Holywell 2015-07-07 09:48:53 +01:00
parent e3206dcc75
commit 3fb8a38983

View file

@ -68,7 +68,7 @@ SELECT r.last_name,
WHERE r.last_name IN
(SELECT c.last_name
FROM champions AS c
WHERE year > '2008'
WHERE YEAR(championship_date) > '2008'
AND c.confirmed = 'Y');
```