i have one table in that table 12 months column and emp name column means
emp_ name jan feb march april,,,,,,,,,,dec
means all 12 months are there
in my query i am passing today date
my question is
1) if i pass feb-01-2014 as date
i have to display emp_name jan and feb column name
2) if i pass march-02-2014 as date
i have to display emp_name jan feb march column name
3)if i pass may-11-2014 as date
i have to display column like
emp_name jan feb march april may
please can any one give query for my requirement