This is probably a simple where clause but I want to say, from columnX (which is datetime) I want all rows where just the year = 2010.
so:
select * f
If i understand that you want all rows in the year 2010, then:
select * from mytable where Columnx >= '2010-01-01 00:00:00' and Columnx < '2011-01-01 00:00:00'