I have a table with engineer name and the date as a float.
i did the following
select t.eng_id, t.createdat
from JOBS t
where t.ENG_ID in (SELECT ENG_NAME From HOSEFLEX.ENGINEERS)
which got me
1 bungle 40767.8305520833
2 bungle 40767.7657221412
3 Shaun 40825.6510914583
4 Shaun 40767.8287994213
5 Shaun 40825.6041891204
6 Shaun 40908.8024086458
i converted the float to a year month
select eng_id,
TO_CHAR( to_date('12/30/1899', 'MM/DD/YYYY') + t.createdat , 'YYYY-MON')
from JOBS t
which got me
1 bungle 2011-AUG
2 bungle 2011-AUG
3 Shaun 2011-OCT
4 Shaun 2011-AUG
5 Shaun 2011-OCT
6 Shaun 2011-DEC
but what i want is a count of entries for each engineer per month
Eng Name 2011-Aug 2011-OCT 2011-DEC
bungle 2 0 0
Shaun 1 2
and if its possible i would like to be able to set that start and end date to filter on
Thanks in advance
Short answer — you can use group by on calculations. So you can use NVL and case/when as well as other calculations and functions.