oracle 달력 sql
oracle 달력 sql select sun, mon, tue, wed, thu, fri, sat from ( select week, max(decode(dat, 1, day)) as sun, max(decode(dat, 2, day)) as mon, max(decode(dat, 3, day)) as tue, max(decode(dat, 4, day)) as wed, max(decode(dat, 5, day)) as thu, max(decode(dat, 6, day)) as fri, max(decode(dat, 7, day)) as sat from ( select to_char(dates, 'DD') as day, to_char(dates, 'D') as dat, to_char(dates, 'D') - ..
2022. 7. 8.
Oralce rollup, cube, grouping sets
Oralce rollup, cube, grouping sets 오라클 rollup, cube, grouping sets, 컬럼추출 그룹화 사용법&예제 by codecow 2020. 11. 12. 오라클의 rollup, cube 함수는 group by와 함께 사용하는 옵션입니다. rollup : 첫 번째 컬럼의 집계 결과를 추출 cube : 모든 컬럼의 집계 결과를 추출 직책별, 성별 인원수를 추출하겠습니다. select sajob, gender, count(*) from sawon group by rollup(sajob, gender); 위처럼 group by에 rollup을 사용하게 되면, 직책별 성별, 직책별, 전체 인원수를 집계해줍니다. 성별 인원수까지 집계하려면 cube를 사용하면 됩니다. sel..
2022. 2. 4.
Don't Sleep
Don't Sleep 윈도우의 슬립 기능 차단 (절전모드, 모니터끄기, 화면보호기, 시스템종료 등) 키, 마우스, 데이터사용량 등으로 설정 가능 프리웨어 Don't Sleep is a small Freeware Windows program to prevent system shutdown, Standby, Hibernate, Turn Off and Restart. Especially when old Programs run on Windows 10, 8.1, ... . Here's more aggressive power-saving features with new rules. But not only that, it also prevents login off the computer, and the deacti..
2021. 12. 28.