Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 추상클래스
- super
- 객체형변환
- Vector
- methodArea
- override
- class
- 생성자
- overload
- hashCode
- MSA
- start()
- arguments
- hamobee
- Polymorphism
- abstractclass
- reference
- 콘크리트클래스
- eclipse
- value
- string
- concreteclass
- run()
- ALTER
- fuction
- constantnumber
- garbagecollection
- Hashtable
- Eureka
- object
Archives
- Today
- Total
뇌운동일지
[Oracle] join과 subquery 연습문제 본문
1.
select *
from student natural join enrol ;
2.
select student.stu_no, stu_name, sub_name, enr_grade
from student, subject, enrol
where student.stu_no = enrol.stu_no
and subject.sub_no = enrol.sub_no ;
3.
select sub_name, stu_no, enr_grade
from subject natural join enrol ;
4.
select sub_name, stu_no, enr_grade
from subject join enrol using(sub_no) ;
5.
select stu_name
from student, enrol
where student.stu_no = enrol.stu_no
and enr_grade >= 70 ;
6.
select stu_name
from student, enrol
where student.stu_no = enrol.stu_no
and enr_grade >= 60 ;
7.
select stu_name
from student natural join enrol
where enr_grade <= 70 ;
8.
select sub_name, sub_prof
from student, subject, enrol
where student.stu_no = enrol.stu_no
and enrol.sub_no = subject.sub_no
and stu_name ='김인중' ;
9. // 모르겠음
select sub_name, sub_prof
from subject natural join enrol join student on (stu_no)
where stu_name like '김인중' ;
10.
30.
select student.stu_no, stu_name, enr_grade
from student, enrol, subject
where student.stu_no = enrol.stu_no
and subject.sub_no = enrol.sub_no
and sub_name ='시스템분석설계' ;
31.
'DB > Oracle' 카테고리의 다른 글
[Oracle] 데이터 갱신과 트랜잭션 제어 연습문제 (0) | 2020.05.28 |
---|---|
[Oracle] 데이터 갱신과 트랜잭션 제어 (0) | 2020.05.28 |
[Oracle] SubQuery, 집합연산자 (0) | 2020.05.27 |
[Oracle] join (0) | 2020.05.26 |
[Oracle SQL] select 연습문제 (61~108) (0) | 2020.05.26 |
Comments