User Tools

Site Tools


kurs:case

This is an old revision of the document!


select last_name, to_char(hire_date, 'yyyy') as hy,
 (case when to_char(hire_date, 'yyyy')>1995 then 'jung'
       when to_char(hire_date, 'yyyy')>1992 then 'mittel'
       else 'alt'
  end) altersgruppe
 from employees order by hire_date desc;

decode

kurs/case.1410376975.txt.gz · Last modified: 2015/10/19 10:58 (external edit)