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:
parent
e3206dcc75
commit
3fb8a38983
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue