Hi Takahashi Yosuke,
the problem with
SELECT id, name, extract(year from birthDate), birthDate FROM Person
is
Person
having an attribute named
year
.
So you have two options, one is to rename the
Person#year
into by example
yearOfBirth
the other is to change the query
SELECT id, name, extract(year from birthDate), birthDate FROM Person"
to
SELECT id, name, year(birthDate), birthDate FROM Person"
and it should work.