블로그 이미지
꿈을 꾸는 꾸러기 YBHoon

카테고리

분류 전체보기 (81)
Oracle (71)
운영체제 (7)
ETC (0)
Study (3)
Total
Today
Yesterday

달력

« » 2025.5
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

공지사항

태그목록

최근에 올라온 글


1.
SQL> select name, lower(userid)
from student
where length(userid)>=7;

2.
SQL> select name, lower(userid), to_char(birthdate, 'yyyy-mm-dd')
from student
order by idnum;

3.
SQL> select name, lpad(to_char(nvl(profno,0)),4,'0')
from student;

4.
SQL> select studno, name, deptno,
decode(mod(studno,3),0,'A',1,'B',2,'C')
from student;
5.
SQL> select name, tel,
case substr(tel,1,instr(tel,')',1,1)-1)
when '02' then '서울'
when '051' then '부산'
when '052' then '울산'
when '053' then '대구'
else 'etc'
end Loc
from student;
6.
SQL> select name, sal,
round(sal*1.15,0) round,
trunc(sal*1.15,0) trunc
from professor
where to_char(hiredate, 'mm') between 1 and 3;
7.
SQL> select name,
trunc(months_between(sysdate, hiredate), 0) months
from professor
order by months desc;
8.
SQL> select concat(concat(dname,'는 '),loc) from department;

9.
SQL> select rpad(ename,10,substr('1234567890',length(ename)+1)) ename from emp;

'Oracle > SQL & PL/SQL' 카테고리의 다른 글

JOIN (oracle JOIN)  (0) 2010.02.10
SQL 그룹함수  (0) 2010.02.10
SQL 함수  (1) 2010.02.09
SQL 연산 기초  (1) 2010.02.08
실습을 위한 간단한 SQL 사용법  (0) 2010.02.08
Posted by YBHoon
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함