Title: : rsivanil'ibm'com
1???? ??????
- ?????? ????
- ????? ???? ????
???? ???? ????? 203.3330 ???? ???? ????
rsivan_at_il.ibm.com ????? ???? ????
mlefler_at_cs.haifa.ac.il??? http//cs.haifa.ac.il/
courses/dbms
2???? ????? ?????
- ?? ????? ??????? ??? ?????? ????? ??? ?????
- ??????? ?? ERD, ????? ??????, RA, SQL
- ????? ?? ?????? ?????? ??????
- ???? ????? ??????
- ?????? ???? ????????
- ???? ?? ????? 1 ?????? ??????
- ??? ?? ???? ??????
- ??? ?? ???? ??? ????? ????? ?????? ????
3??? ?????? ?-ERD ????? ???????
4??? ?????? ?-ERD ????? ???????
- ???
- ??????? ??? ?????? ???????
- ??????? ?? ?? ??????? ???????? ?????? ???????
- ?? ??? ?? ???? ??? ?????? ?????? ????? ?????
- (??? ?? ?????? ???? ??)
5??? ?????? ?-ERD ????? ???????
- ???
- ??????? ???, ???????? ?? ?? ??????? ????????
?????? ??????? - ???? ???? ????? ?????????? ?? ?????? ???????
(??"? ?????) - 11 ?? ??? ??? ????
- 1n ?? ????? ?? n ????? (????)
- mn ???? ?? ?????? ?? ?????
6??? ?????? ?-ERD ????? ???????
- ??? n1 (?????? ??????)
- ??????? ?? ???? ????? ??????
- ?????, ???? ????? ???????? ??? ???? ?? (?? ??
????!) - ???? ???? ?????, ???? ?? ????
- ?? ????? ????? ????? ?? ????
7??? ?????? ?-ERD ????? ???????
- ???? ????
- ?????? ?? ???? ????? ?????
- ??? ????????????? ?????? ????
- ???? ??????? ??? ???? ????
- (??? - ???? ???? ??? ??? ???? n1)
??-????
??-????
????
????
?????
??????????
?? ???? ?????? ?? ???? ????????????! ???? ?????
????
?????
??-?????
8??? ?????? ?-ERD ????? ???????
- ??????
- ????? ??????? ?? ???? ?????
- ??????? ??????? ?????? ?? ????? ???????? ??????
????
9??? ?????? ?-ERD ????? ???????
- ??????
- ????? ??????? ?? ???? ?????
- ??????? ??????? ?????? ?? ????? ???????? ??????
???? - ????? ??? ??
- ??? ????? (?? ???? ?????? ?? ???)
- ?? ????? (???? ??? ???? ??????, ??? ???? ????? ??
????? ????) - ????? ?????? ?', ??"?
- ?????? ???? ??? ????
10??? ?????? ?-ERD ????? ???????
- ????? ?????? ?', ??? ??????
- ???? ???????
- ?????? ???-, ??-???? ??????? ?? ????? (???? ???
??? ??????) - ??? ????? ????? ????? ?? ??
11??? ?????? ?-ERD ????? ???????
- ????? ?????? ?'
- ??????? ?? ???? ???????
- ?????? ???-, ??-???? ??????? ?? ?????? ???????
- ?? ????? ???????
12??????? ?? ????? (???? ????????)
- ????? ??? ????? ?? ?????
- ??? ?????? ??-???? ???? ????? ????? ???? ????
- ??? ?????? ??-???? ???? ????? ????? ???? ??????
- ??? ?????? ????? ???? ?? ????? ???? ????
- ?????? ?????? ????? ????? ??????!
13??????? ?? ????? (???? ????????)
- ??? ??????? ?? ???? ??????? ???????? ????
- ???? ???? ?????? ?? ??? ???? ????? (?? ???)
- ???? 11, ?? ???? ????? ?? ???? ??? ??? ?????
- ??? ??????? ?? ???? ??? ??? ????? (??? ???? ???)
- ???? n1, ????? ?????? ????? ?? ???? ??? ???
?????! ????? ????? ??? ???? ????? - ??? ?????? ??-???? ?? ??? ??? ??? ????? (??? ????
???) - ??? ??? ?? ??? ???????? (???? ???)
- ???? mn, ??? ???? ????? ?? ????
- ??? ???? ?? ??? ?????? (???? ???), ??? ???? ??
??? ?????? (???? ???)
14??????? ?? ????? (???? ????????)
- ??? ??????? ?? ???? ??????? ???????? ????
- ???? ???? ?????? ?? ??? ???? ????? (?? ???)
- ???? 11, ?? ???? ????? ?? ???? ??? ??? ?????
- ???? n1, ????? ?????? ????? ?? ???? ??? ???
?????! ????? ????? ??? ???? ????? - ???? mn, ??? ???? ????? ?? ????
- ??????? ????? ?? ??? ???? ????? (?? ???)
- ???? ?? ???? ????? ????? ??? ??? ?????!
- ????? ??? ?????, ???? ??? ?????? ???
- ???!!! ??? ??? ???????? ????? ??? ?-ERD
15??????? ?? ????? (???? ????????)
- ???? ???? ??? ?????? ?? ?? ????????
- ???? ?? ?????? ????? ??? ?? ?? ????
??? ??? ????? ???
???? ??-??? ?????
16??????? ?? ????? (???? ????????)
- ???????? ??????? ?? ERD ??? ???? ????? ????? ????
????? ???? ?? ?????? ?? ??? - ????, ??? ????? ?? ??? 7 ?-12 ???????
- ????? ??????? ?? ?? "1" ????? ?????
- ???? ???, ???? ?????? ???? ????? ?????? ???
- ???????, ?"? ????? ??? ?????
- ?????? ?????? ????? ???? ????? ??? ???? ????
- ???? ???? ???????, ???? ????. ????? ??? ??? ????.
17??????? ?? ????? (???? ????????)
- ??? ?????? ??-???? ???? ????? ????? ???? ????
- ?? ?? ???? ????? ?? ????
- ??? ?????? ??-???? ???? ????? ????? ???? ??????
- ?? ??? ???? ????? ?? ????
- ??? ?????? ????? ???? ?? ????? ???? ????
- ???? ?? ??? ???? ?????
18????? ?-RA
- ????? ???? ????? ???? ?? ?????? ???!
- ??? ????? ?????? ????? ????? ??? ???????
- ?? ?????? ??? "??????" ?? ????? ?????
- ???? ????? ?? ????? ?????
- ???? ???? 8 ???????? ??????? ????? ??? ?? ??????
????? ?? ?? ???? ??????? ??? - ????? ????? ???????? ??? ????? ?????? ??? ?????
?????? ????? ????
19??? ????? ?? RA
- ?????, ?????, ?????
- ?? ?? ?????? ????! ???? ???? ?? rename
- ????? ??????
- ?? ?? ?????? ????! ???? ???? ?? rename
- ?????/????? ??? ????? ???? rename ?????
- ????? ?? ?????? ???? ???? ????
- ????? ?? ????? ??? ?? ???????!
20????? ?-RA
- ???? 8 (????) ???????? ??????? ????? ??? ??
?????? ????? ?? ?? ???? ??????? ??? - ????? ????? (????) ???????? ??? ????? ?????? ???
????? ?????? ????? ???? - o ??-?????? (????? ????? ? ????)
- - o??-?????? ????? ?-
-
- o??-??????, ??-???? (????? ????? ? ????)
- - o??-??????, ??-???? ????? ?-
???????? ????? ???? ????? ?? ??' ??????, ??? ????
?? ????? (????!)
???????? ????? ???? ????? ?? ??' ??????, ??? ????
?? ?????? ?? ?????
21???? ???? ?-SQL
- ???? ???????? ??????? ????? ??? ?? ?????? ?????
?? ?? ???? ??????? ???
select student_name from students where not
exists ((select course_id from takes,
tirgul where takes.course_id
tirgul.course_id and takes.stud_id
students.stud_id) except (select course_id
from participates where participates.stud_id
students.stud_id))
?????? ?? ??????? ?????' ????
?????? ?????' ?????
????? ??????? ????????
????? ??????? ????????
?????? ?????' ???? ??? ?????
22????? ?-RA
- ????? 10 ???? ????? ?????? ????? ??????
- (????? ????? ??????? ???? ????) ???? (?????? ???)
- (?????? ???????? ????) ???? (?????? ?????? ???)
- ??? ???? ????? ????? ?? ?????? ???? ???????
?????? - ???? ??????? ???? ???????!
- ??? ???????? ???? ?? ??? ??????? ??????, ????
join ?? ???? ??????? ???, ???? ???? - ????? ??? ?? ??? ???? ???? ?????? ??-????
- ????, ???? ?? ?????? ?-h-join ?? ???? ?????
23???? ???? ?-SQL
- ?"? ?? ???????? ??????? ??????? ???? ?????
????(??) ????, ??????? ??????? ?????? ???
select stud_id, hug_name from takes,
teaches where takes.course_id teaches.course_id
and (stud_id, hug_name) not in ((select
from study_had) union (select
from study_du))
?????? ???????? ??????? ???? ??????
?????? ???????? ???? ???
24???? ??????
- ???? ???? ??????? ?????? ?????? ????? ?? ????
???? ???? ???? ????? - ????? ?????? "????" ????? ???? ?? "?????"
- ???? ????? ?? ??' ???? ?"? ????? ???? ???????!
- ?? ????? ??????? ?????? ?? ????
- ???? ?? ???? "????", ?????? ?? ?? "?????"
- ?? ????? ???? ???? ???? ?? ?????
- ????? ?????? ?? ?????, ??? ?????
- ???? ????????, ???? ???? ?? ????? ?? ??' ?????
25????
- ERD
- ?????? ???? ????????
- ???? ????? ??????
- RA
- ???????
- SQL
- ?????
- ??????? ???????
- ???????
26???
??????? ???? ?' ?????