I want to select multiple records on the basis of a matching year, for example in table tab where columns are [id] int, [name] varchar, [boo
[id] int
[name] varchar
[boo
Yes, if you try this query:
SELECT to_date ('2008','yyyy') AS my_date, SYSDATE FROM dual;
The date will be the year (2008) and the current month (today is November), and the day is 1 so your query do not includes all months in 2008.