1 2 3 4 5 6 7 8 9 10 11 12 13
| SELECT nom,
DECODE(TO_CHAR(SYSDATE,'D'),1,DECODE(ID_LANGUAGE,1,'Lundi',2,'Lunes',3,'Monday'),
2,DECODE(ID_LANGUAGE,1,'Mardi',2,'Martes',3,'Tuesday'),
3,DECODE(ID_LANGUAGE,1,'Mercredi',2,'Miércoles',3,'Wednesday'),
4,DECODE(ID_LANGUAGE,1,'Jeudi',2,'Jueves',3,'Thurday'),
5,DECODE(ID_LANGUAGE,1,'Vendredi',2,'Viernes',3,'Friday'),
6,DECODE(ID_LANGUAGE,1,'Samedi',2,'Sábado',3,'Saturday'),
7,DECODE(ID_LANGUAGE,1,'Dimanche',2,'Domingo',3,'Sunday')) jour,
INITCAP(TO_CHAR(SYSDATE, 'DAY', 'NLS_DATE_LANGUAGE=' ||DECODE(ID_LANGUAGE,1,'French', 2,'Spanish', 3,'English'))) AS jour_2
FROM (SELECT 1 id_language, 'FR' nom FROM dual
UNION ALL SELECT 2 id_language, 'ES' nom FROM dual
UNION ALL SELECT 3 id_language, 'EN' nom FROM dual
) |