I have a table like this in postgresql:
| Name | DOB |
|---|---|
| ABC | '2011-03-03' |
| XYZ | '2009-01-01' |
What is the query that I should use to get the output data in the below format(only year instead of date) also I want to retrieve data that is greater than 2010 only:
| Name | DOB |
|---|---|
| ABC | '2011' |