abdullah's picture
Add files using upload-large-folder tool
d315495 verified
raw
history blame
59.3 kB
1
00:00:20,470 --> 00:00:24,390
ุจุณู… ุงู„ู„ู‡ ุงู„ุฑุญู…ู† ุงู„ุฑุญูŠู… ุงู„ูŠูˆู… ุฅู† ุดุงุก ุงู„ู„ู‡ ุจู†ุฎู„ุต
2
00:00:24,390 --> 00:00:28,010
chapter three ุจุฏู†ุง ู…ู† ุงู„ู…ุฑุฉ ุงู„ู…ุงุถูŠุฉ ู†ุชูƒู„ู… ุนู†
3
00:00:28,010 --> 00:00:32,670
ุงู„ุชุญูˆูŠู„ ุฃูˆ ุงู„ conversion ู…ู† ER model ู„ relational
4
00:00:32,670 --> 00:00:38,650
design ุงู„ู„ูŠ ู‡ูˆ ูŠู…ุซู„ ุจุงู„ tables ุฃุฎุฐู†ุง ู„ู‡ ุฃูˆู„ ู…ุซู„
5
00:00:38,650 --> 00:00:40,030
ุฃุจุณุท ู…ุซู„ ูƒูŠู ุฅู† ู…ู…ูƒู†
6
00:00:43,050 --> 00:00:47,530
ุฃุฎุฐู†ุง ุฃูˆู„ ุดูŠุก ูƒูŠู ู…ู…ูƒู† ู†ุญูˆู„ entity set ู†ุญูˆู„ู‡ุง ู„
7
00:00:47,530 --> 00:00:50,390
table ุญูƒูŠู†ุง ุงู„ุชุญูˆูŠู„ ุชุจุนู‡ุง ุงู„ conversion ู…ุจุงุดุฑ ุฌุฏุง
8
00:00:50,390 --> 00:00:54,310
ู†ุญูˆู„ู‡ุง ู„ table create table ุงุณู… ุงู„ entity set ู‡ูˆ
9
00:00:54,310 --> 00:00:57,490
ุงุณู… ุงู„ table ูˆ ุงู„ attributes ุจูŠุตูŠุฑูˆุง ุงู„ columns ูˆ
10
00:00:57,490 --> 00:00:59,890
ุงู„ primary key ุงู„ู„ูŠ ุจูŠูƒูˆู† ุชุญุชู‡ ุฎุท ู‡ูŠูƒูˆู† ุงู„ primary
11
00:00:59,890 --> 00:01:04,590
key ุจุนุฏูŠู† ุชูƒู„ู…ู†ุง ุนู† ุชุญูˆูŠู„ ุงู„ relations ุฃุฎุฐู†ุง ู…ุซุงู„
12
00:01:04,590 --> 00:01:08,570
ุงู„ู„ูŠ ู‡ูˆ employees works in departments ุญูƒูŠู†ุง ุงู„
13
00:01:08,570 --> 00:01:14,930
relation ุชุญูˆูŠู„ู‡ุง ุจุฑุถู‡ ู…ุจุงุดุฑ ุฒูŠ ุชุญูˆูŠู„ ุงู„ entity ู„ูƒู†
14
00:01:14,930 --> 00:01:18,650
ู‡ู†ุฌูŠุจ ู„ู‡ุง two foreign keys ู…ู† ุงู„ two entities ุงู„ู„ูŠ
15
00:01:18,650 --> 00:01:21,570
ุจูŠุดุงุฑูƒูˆุง ููŠ ุงู„ relation ููŠู‡ุง ูˆุงู„ุงุชู†ูŠู† ู…ุน ุจุนุถ
16
00:01:21,570 --> 00:01:24,770
ู‡ูŠุนู…ู„ูˆุง ุงู„ primary key ุฒูŠ ุงู„ู…ุซุงู„ ุงู„ู„ูŠ ุนู†ุฏูŠ ุฌุจู†ุง
17
00:01:24,770 --> 00:01:28,050
ุฑู‚ู… ุงู„ department ุงู„ DID ุฑู‚ู… ุงู„ employee ุงู„ู„ูŠ ู‡ูˆ
18
00:01:28,050 --> 00:01:32,050
ุงู„ SSN ุฌูŠุจู†ุงู‡ู… ุงู„ุงุชู†ูŠู† ู…ุน ุจุนุถ ุญุทูŠู†ุงู‡ู… ููŠ ุนู„ุงู‚ุฉ ุงู„
19
00:01:32,050 --> 00:01:37,090
works in ูˆุงู„ุงุชู†ูŠู† ู…ุน ุจุนุถ ุดูƒู‘ู„ูˆุง ุงู„ primary key ูˆูƒู„
20
00:01:37,090 --> 00:01:41,990
ูˆุงุญุฏ ููŠู‡ู… ู„ูˆุญุฏู‡ ู‡ูŠูƒูˆู† ุนุจุงุฑุฉ ุนู† foreign key ุฅุฐุง
21
00:01:41,990 --> 00:01:46,070
ุงู„ุนู„ุงู‚ุฉ ู‡ุฐู‡ ูƒุงู† ููŠู‡ุง key constraint ุงู„ key
22
00:01:46,070 --> 00:01:50,120
constraint ู‡ูŠุฎู„ูŠ ุนู†ุฏูŠ ุงู„ primary key ูŠุชุบูŠุฑ ูŠุตูŠุฑ ุจุฏู„
23
00:01:50,120 --> 00:01:53,540
ู…ู† ุงู„ primary key ุนุจุงุฑุฉ ุนู† combined key ู…ู† ุงู„
24
00:01:53,540 --> 00:01:55,700
primary key ุชุจุน ุงู„ employees ูˆ ุงู„ primary key ุชุจุน
25
00:01:55,700 --> 00:01:59,720
ุงู„ departments ุงู„ู„ูŠ ู‡ู… ุงู„ DID ูˆ ุงู„ SSN ู‡ูŠุตูŠุฑูˆุง ุจุณ
26
00:01:59,720 --> 00:02:03,240
primary key ุฅูŠุด ูˆุงุญุฏ ุงู„ู„ูŠ ู‡ูˆ ู…ูŠู† ุชุจุน ุงู„ุนู„ุงู‚ุฉ ุงู„ู„ูŠ
27
00:02:03,240 --> 00:02:06,640
ุฌุงูŠ ู…ู†ู‡ุง ุงู„ุณู‡ู… ุงู„ุนู„ุงู‚ุฉ ุงู„ู„ูŠ ุฌุงูŠ ู…ู†ู‡ุง ุงู„ุณู‡ู… ุงู„ key
28
00:02:06,640 --> 00:02:09,800
constraint ู‡ูŠุตูŠุฑ ุนู†ุฏ ุงู„ primary key ู‡ูˆ ุงู„ DID
29
00:02:09,800 --> 00:02:13,760
ู„ูˆุญุฏู‡ ูˆ ุงู„ูƒู„ุงู… ู‡ุฐุง ู‡ูŠุณู‡ู„ ุนู„ูŠ ุฅู† ู…ู…ูƒู† ุจุฏู„ ู…ู† ุนุงู…ู„
30
00:02:13,760 --> 00:02:18,020
table relation ูู‚ุท ู„ู„ manage ูˆ relation ุฃูˆ table ู„ู„
31
00:02:18,020 --> 00:02:23,980
departments ุฅู† ู†ุฏู…ุฌ ุงู„ุงุชู†ูŠู† ู…ุน ุจุนุถ ุดูู†ุง ู‡ุฐุง
32
00:02:23,980 --> 00:02:27,180
ุงู„ูƒู„ุงู… ู‡ุงูŠ ุงู„ู…ุซุงู„ ุงู„ุฃูˆู„ ูƒูŠู ู…ู…ูƒู† ุฃุนู…ู„ ุฃู†ุง table
33
00:02:27,180 --> 00:02:31,980
ุนู„ุงู‚ุฉ ุงู„ manage ู„ูˆุญุฏู‡ุง ููŠู‡ุง ุฑู‚ู… ุงู„ู…ูˆุธู ุฑู‚ู… ุงู„ู‚ุณู…
34
00:02:31,980 --> 00:02:37,520
ุงู„ DID ูˆ ุงู„ู„ูŠ ู‡ูˆ descriptive attribute since ุงู„ู„ูŠ
35
00:02:37,520 --> 00:02:43,190
ู‡ูˆ ุงู„ attribute ุชุจุน ุงู„ relation ู†ูุณู‡ุง ูˆ ุจูŠูƒูˆู† ุนู†ุฏูŠ
36
00:02:43,190 --> 00:02:46,330
ุงู„ foreign key ุงู„ู„ูŠ ู‡ูˆ ุงู„ SSN ูˆ ุงู„ DID ูˆ ุงู„ DID
37
00:02:46,330 --> 00:02:51,150
ู†ูุณู‡ ู‡ุณุชุฎุฏู…ู‡ ูƒ primary key ุจุฏูˆู† ู…ุง ุฃุฌู…ุน ูˆ ุฃุนู…ู„ู‡
38
00:02:51,150 --> 00:02:55,010
combination ู…ุน ุงู„ SSN ู„ุฅู† ููŠ ุนู†ุฏูŠ ุงู„ู„ูŠ ู‡ูŠ ุงู„ key
39
00:02:55,010 --> 00:03:00,710
constraint ูˆ ู…ู…ูƒู† ู†ุฏู…ุฌู‡ู… ูˆ ู†ุญูˆู„ู‡ู… ู„ table ูˆุงุญุฏ ุงู„
40
00:03:00,710 --> 00:03:04,330
departments ู…ุน ุงู„ manage ูˆ ู‡ูŠุตูŠุฑ ุนู†ุฏูŠ ุงู„ table ููŠ
41
00:03:04,330 --> 00:03:10,320
ุฎู…ุณุฉ attributes ุงู„ู„ูŠ ู‡ู… ู…ูŠู†ุŸ ุงู„ุชู„ุงุชุฉ ู‡ุฏูˆู„ ู‡ูŠ ุชู„ุงุชุฉ
42
00:03:10,320 --> 00:03:13,960
ู‡ูŠ ูƒู…ุงู† ูˆุงุญุฏ ู‡ูŠ ุฃุฑุจุนุฉ ูˆ ุงู„ foreign key ุงู„ู„ูŠ ุฌุงูŠ ู…ู†
43
00:03:13,960 --> 00:03:29,260
ุงู„ employees ุตุงุฑูˆุง ูƒุงู…ุŸ ุฎู…ุณุฉ ุนู…ู„ูŠุฉ
44
00:03:29,260 --> 00:03:35,010
ุงู„ุฏู…ุฌ ู‡ุญุท ููŠู‡ุง ุงู„ุฎู…ุณุฉ columns ุงู„ู€ DID ูˆ ุงู„ู€ D name
45
00:03:35,010 --> 00:03:37,730
ูˆ ุงู„ budget ูˆ ุงู„ SSN ูˆ ุงู„ cents ุงู„ primary key
46
00:03:37,730 --> 00:03:42,190
ู‡ูŠุธู„ ุฒูŠ ู…ุง ู‡ูˆ ุงู„ู„ูŠ ู‡ูˆ ู…ูŠู† ุฑู‚ู… ุงู„ department ู‡ูŠุธู„
47
00:03:42,190 --> 00:03:45,430
ุนู†ุฏูŠ ุฒูŠ ู…ุง ู‡ูˆ primary key DID ูˆ ุงู„ foreign key
48
00:03:45,430 --> 00:03:51,990
ู‡ูŠูƒูˆู† ูˆุงุญุฏ ุจุณ ุงู„ู„ูŠ ู‡ูˆ ู…ูŠู† ุงู„ SSN ููŠ ุงู„ุญู„ ุงู„ุณุงุจู‚
49
00:03:51,990 --> 00:03:55,620
ูƒุงู† ุนู†ุฏูŠ ุงู„ foreign keys ูƒุงู…ุŸ ุฅุชู†ูŠู† ู„ุฅู† ูƒุงู†ุช ุงู„
50
00:03:55,620 --> 00:03:58,180
manage ู…ูุตูˆู„ุฉ ุนู† ุงู„ department ูุนุดุงู† ุฃูˆุตู„ู‡ุง ู…ุน ุงู„
51
00:03:58,180 --> 00:04:01,580
department ุชุฏู‘ูŠ foreign key ุฏู…ุฌู†ุงู‡ู… ูู…ุด ู„ุงุฒู… ู†ูŠู„ู‡ู…
52
00:04:01,580 --> 00:04:04,260
foreign key ุถุงูŠู„ ุจุณ ุจุชุฏูŠ foreign key ุนุดุงู† ุฃุฑุจุท ู…ุน
53
00:04:04,260 --> 00:04:11,180
ุงู„ employees ูู‚ุท ุงู„
54
00:04:11,180 --> 00:04:15,700
participation constraint ุนุจุฑู†ุง ุนู†ู‡ุง ุจุงุณุชุฎุฏุงู… ุงู„ู„ูŠ
55
00:04:15,700 --> 00:04:21,480
ู‡ูŠ ุฅูŠุด ุงู„ not null ู…ุงุฐุง ูŠุนู†ูŠ participation
56
00:04:21,480 --> 00:04:24,300
constraintุŸ ุญูƒูŠู†ุง ุฅู†ู‡ ููŠ ุนู†ุฏูŠ ู†ูˆุนูŠู† total ูˆ
57
00:04:24,300 --> 00:04:29,160
partial ุงู„ total ู…ุนู†ุงู‡ ุฅู† ูƒู„ ู…ุซู„ุง department ู„ู‡
58
00:04:29,160 --> 00:04:35,200
ู…ุฏูŠุฑ ูƒู„ ู…ูˆุธู ู„ู‡ ู‚ุณู… ูƒู„ ู‚ุณู… ููŠู‡ ู…ูˆุธููŠู† ูู…ุนู†ุงู‡ ุฅู†
59
00:04:35,200 --> 00:04:40,100
ู„ุงุฒู… ูŠูƒูˆู† ู…ูˆุฌูˆุฏ ุนูƒุณ ุงู„ุดูŠุก ุงู„ูุงุถูŠ ุงู„ูุงุถูŠ ุงู„ู„ูŠ ู‡ูˆ ุงู„
60
00:04:40,100 --> 00:04:44,500
null ุฅุฐุง not null ู not null constraint ุจุชุนุจุฑ ุนู†ุฏูŠ
61
00:04:44,500 --> 00:04:47,860
ุนู† ุงู„ total participation
62
00:04:48,980 --> 00:04:53,520
ุชุนุจุฑ ุนู†ุฏ total participation ูู„ู…ุง ู‡ู†ูŠุฌูŠ ู†ุนู…ู„ ุงู„
63
00:04:53,520 --> 00:04:57,680
table ุชุจุน ุงู„ department ูˆ ุงู„ managers ู„ู…ุง ูˆุฌุฏู†ุงู‡ู…
64
00:04:57,680 --> 00:05:03,140
ููŠ table ูˆุงุญุฏ ุญุทูŠู†ุง ุนู†ุฏ ุฑู‚ู… ุงู„ู…ูˆุธู not null ุนุดุงู†
65
00:05:03,140 --> 00:05:11,560
ู†ุถู…ู† ุฅู† ุฏุงุฆู…ุง ููŠู‡ ู…ูˆุธู ู‡ูˆ ู…ุฏูŠุฑ ุงู„ู‚ุณู… ู‡ุชุธู‡ุฑ ุฅู†
66
00:05:11,560 --> 00:05:14,440
ุญุงู„ุฉ ุซุงู†ูŠุฉ ููŠ ุญุงู„ุฉ ู…ุง ุฃุฌูŠ ุฃุนู…ู„ delete ุฅู† ูŠูƒูˆู†
67
00:05:14,440 --> 00:05:19,550
ุงู„ู…ูˆุธู ุฃุตู„ุง ู…ูˆุฌูˆุฏ ูˆ ู…ุฏูŠุฑ ุงู„ู‚ุณู… ู„ูƒู† ุงู„ุขู† ุญุฐูู†ุง
68
00:05:19,550 --> 00:05:24,690
ุงู„ู…ูˆุธู ุงุณุชู‚ุงู„ ู‚ุงุนุฏ whatever ูุจุฏูŠ ู„ู…ุง ุฃุนู…ู„ delete
69
00:05:24,690 --> 00:05:28,130
ุจุฏูŠุด ูŠู‚ูˆู„ูˆุง ู…ูƒุงู†ู‡ ูุงุถูŠ ู„ุฃูˆู„ู‹ุง ู‡ุชุตูŠุฑ ุจุฏู„ ู…ุง ู‡ูŠ total
70
00:05:28,130 --> 00:05:32,690
ู‡ุชุตูŠุฑ partial ูุฃู†ุง ุญูƒูŠุช ู‡ู†ุง not null ูุฅุฐุง ุจุฏูŠ ุนู†ุฏูŠ
71
00:05:32,690 --> 00:05:35,650
ุนุฏุฉ ุญู„ูˆู„ ุฅู…ุง ู„ู…ุง ุฃู…ุญูŠ ุงู„ู…ูˆุธู ุฃุนู…ู„ู‡ delete ุฃุนู…ู„
72
00:05:35,650 --> 00:05:40,190
delete ู„ู„ู‚ุณู… ู‡ุฐุง ุงู„ูƒู„ุงู… ู…ุด ู…ู†ุทู‚ูŠ ุจุฏูŠ ุฃู…ู†ุนู‡ ูˆ ุฃุนู…ู„ู‡
73
00:05:40,190 --> 00:05:45,570
no action ู‡ูŠ ู‡ุชุนู…ู„ ู„ูŠู‡ reject ูุฃุญูƒูŠู„ู‡ on delete no
74
00:05:45,570 --> 00:05:46,010
action
75
00:05:49,480 --> 00:05:54,880
ุงู„ weak entity ุชุญูˆูŠู„ู‡ุง ุจุฑุถู‡ ุณู‡ู„ ุนู†ุฏูŠ ู…ุซุงู„ ุฅู† ุฃู†ุง
76
00:05:54,880 --> 00:05:59,800
ุนู†ุฏูŠ ุงู„ู…ูˆุธููŠู† ููŠู‡ ู„ู‡ู… ุฃุจู†ุงุก ุจูŠุฑุชุจุทูˆุง ู…ุน ุฃุจู†ุงุฆู‡ู…
77
00:05:59,800 --> 00:06:05,360
ุจุฅู† ู„ู‡ู… ุจูˆู„ูŠุตุฉ ุชุฃู…ูŠู† ุตุญูŠ ู„ุฃุจู†ุงุฆู‡ู… ุจูˆู„ูŠุตุฉ ูƒู„
78
00:06:05,360 --> 00:06:11,880
ุจูˆู„ูŠุตุฉ ู…ู† ู‡ุฏูˆู„ ู„ู‡ุง cost ู„ู‡ุง ุซู…ู† ุงู„ุฃุจู†ุงุก ู„ู‡ู… ุฃุณู…ุงุก
79
00:06:11,880 --> 00:06:18,510
ูˆ ุนู…ุฑ ุงู„ู€ weak entity ุงู„ primary key ุชุจุนู‡ุง ุจุชูƒูˆู† ู…ู†
80
00:06:18,510 --> 00:06:22,030
ุงู„ primary key ุชุจุน ุงู„ strong entity ู‡ูŠูƒ ุฃุฎุฐู†ุง ููŠ
81
00:06:22,030 --> 00:06:25,010
ุงู„ ER ู…ูˆุฏูŠู„ ู‡ุงุฎุฏ ุงู„ primary key ุชุจุน ุงู„ strong
82
00:06:25,010 --> 00:06:29,230
entity ูˆ ุฃุถูŠูู‡ ู„ู„ attribute ุงู„ู„ูŠ ุฃู†ุง ูŠุนู†ูŠ ุจุนุชุจุฑู‡
83
00:06:29,230 --> 00:06:33,690
ุฅู† ุฒูŠ ูƒุฃู†ู‡ ู…ู…ูƒู† ุฃุณุชุฎุฏู…ู‡ primary key ุงู„ู„ูŠ ู‡ูˆ ุนู…ู„ู†ุง
84
00:06:33,690 --> 00:06:40,210
ู…ุด ุฎุท ุชุญุชู‡ ุนู…ู„ู†ุง ุฎุท ู…ุชู‚ุทุน ุชุญุชู‡ dash line ูู‡ุณุชุฎุฏู…
85
00:06:40,210 --> 00:06:44,910
ุงุณู… ุงู„ุทูู„ ุฃูˆ ุงุณู… ุงู„ dependent ู…ุน ุฑู‚ู… ุงู„ู…ูˆุธู ุงู„ู„ูŠ
86
00:06:44,910 --> 00:06:48,550
ู‡ูˆ ุญูŠูƒูˆู† ุฃุจูˆู‡ ูˆุงู„ุฏู‡ ุฃูˆ ุฃู…ู‡ ุนุดุงู† ุฃุชุนุฑู ุฃู†ุง ุนู„ู‰
87
00:06:48,550 --> 00:06:53,210
ุงู„ุฃุทูุงู„ ุนุดุงู† ุฃุชุนุฑู ุนู„ูŠู‡ู… ูŠุนู†ูŠ ู„ูˆ ูƒุงู† ุนู†ุฏูŠ ุชูƒุฑุงุฑ ููŠ
88
00:06:53,210 --> 00:06:56,450
ุงุณู… ุงู„ุฃุทูุงู„ ููŠู‡ ุงุซู†ูŠู† ู…ุญู…ุฏ ุฃูƒูŠุฏ ู…ุด ู‡ูŠูƒูˆู†ูˆุง ู…ู† ู†ูุณ
89
00:06:56,450 --> 00:07:00,430
ุงู„ุฃุจ ู‡ูŠูƒูˆู† ู…ุซู„ู‹ุง ู…ุญู…ุฏ ุงู„ุฃูˆู„ ุงุจู† ู…ูˆุธู ูˆ ู…ุญู…ุฏ ุงู„ุซุงู†ูŠ
90
00:07:00,430 --> 00:07:05,130
ุงุจู† ู…ูˆุธู ุซุงู†ูŠ ู ุฃู†ุง ุฑู‚ู… ุงู„ู…ูˆุธู ู…ุน ุงู„ุงุณู… ุจู…ูŠุฒ
91
00:07:05,130 --> 00:07:05,750
ู„ู„ุฃุจู†ุงุก
92
00:07:08,150 --> 00:07:11,270
ุงู„ employees ุนุดุงู† ุฃุญูˆู„ู‡ุง ู„ table ูˆุงุถุญุฉ ู†ูุณ ุงู„ุฃู…ุซู„ุฉ
93
00:07:11,270 --> 00:07:14,850
ุงู„ุณุงุจู‚ุฉ table ุฎุงุต ุจุงู„ employees ูˆ ุฎู„ุตู†ุง ู…ู†ู‡ ุฃู†ุง
94
00:07:14,850 --> 00:07:17,950
ุจุถู„ ุนู†ุฏ ุงู„ policy ูˆ ุงู„ dependence ุงู„ policy ูˆ ุงู„
95
00:07:17,950 --> 00:07:21,170
dependence ุฅูŠุด ููŠ ุจูŠู†ู‡ู… ุณู‡ู… key constraint ู…ุฏุงู…
96
00:07:21,170 --> 00:07:23,770
ููŠู‡ key constraint ูŠุนู†ูŠ ู…ู…ูƒู† ุงู„ two tables ุฅูŠุด
97
00:07:23,770 --> 00:07:28,890
ุฃุนู…ู„ ููŠู‡ู… ุฃุฏู…ุฌู‡ู… ู„ุฃู† ูƒู„ ุทูู„ ุฃูˆ ูƒู„ dependent ู„ู‡
98
00:07:28,890 --> 00:07:33,170
policy ูˆุงุญุฏุฉ ูู‚ุท ูุจุงู„ุชุงู„ูŠ ุฃู†ุง ู…ู…ูƒู† ุฃุฏู…ุฌู‡ู… ู„ู…ุง ุจุฏูŠ
99
00:07:33,170 --> 00:07:35,690
ุฃุฏู…ุฌู‡ู… ุฅูŠุด ุงู„ attributes ุฃูˆ ุงู„ columns ุงู„ู„ูŠ ุนู†ุฏูŠ
100
00:07:35,690 --> 00:07:41,500
ุนู†ุฏูŠ ุงู„ age ูˆุนู†ุฏูŠ ุงู„ PNAME ูˆุนู†ุฏูŠ ู…ูŠู† ุงู„ cost ูˆุจุฏูŠ
101
00:07:41,500 --> 00:07:46,080
ุฃุฌูŠุจ ุงู„ SSN ูƒ foreign key ูˆุนุดุงู† ุฃุฏู…ุฌู‡ ู…ุน ุงู„ PNAME
102
00:07:46,080 --> 00:07:50,400
ูŠุตูŠุฑ primary key ุงู„ูƒู„ุงู… ู‡ุฐุง ุชุฑุฌู…ุชู‡ ููŠ ูƒู…ุงู† SQL
103
00:07:50,400 --> 00:07:56,400
create table ุงุณู…ู‡ deb underscore policy ุงุฎุชุตุงุฑ
104
00:07:56,400 --> 00:07:59,260
ู„ูƒู„ู…ุฉ dependance policy ุฏู‡ ุฃุฌู…ุน ุงู„ dependance ูˆ ุงู„
105
00:07:59,260 --> 00:08:02,440
policy ู…ุน ุจุนุถ ุญุท ููŠู‡ ุงู„ B name ูˆ ุงู„ age ู‡ุฏูˆู„ ู…ู†
106
00:08:02,440 --> 00:08:06,500
ู…ูŠู† ุฃุฎุฐู†ุงู‡ู… ู…ู† ุงู„ dependance ูˆ ุงู„ cost ุฃุฎุฐู†ุงู‡ ู…ู†
107
00:08:06,500 --> 00:08:09,360
ู…ูŠู† ู…ู† ุงู„ policy ูˆ ุงู„ SSN ุงู„ู„ูŠ ู‡ูˆ ุงู„ foreign key
108
00:08:09,360 --> 00:08:14,300
ุชุจุน ุงู„ employee ูู‡ูŠ ุงู„ SSN ู‡ูŠู‡ุง foreign key SSN
109
00:08:14,300 --> 00:08:17,560
references ุงู„ employees ูˆ ุงู„ primary key combined
110
00:08:17,560 --> 00:08:22,620
ุงู„ B name ู…ุน ุงู„ SSN ุงุณู… ุงู„ุทูู„ ุฃูˆ ุงู„ dependent ู…ุน
111
00:08:22,620 --> 00:08:27,540
ุฑู‚ู… ุงู„ู…ูˆุธู ุงู„ู„ูŠ ู‡ูˆ Frankie ุงู„ู…ุฑุฉ ู‡ุงูŠ on delete
112
00:08:27,540 --> 00:08:31,440
ุงุณุชุฎุฏู…ุช cascade ู…ุด no action ุชุนุงู„ูˆุง ู†ุดูˆู ุฅูŠุด ูŠุนู†ูŠ
113
00:08:31,440 --> 00:08:34,420
ุงู„ no action ููŠ ู‡ุงูŠ ุงู„ุญุงู„ุฉ ูˆ ุฅูŠุด ูŠุนู†ูŠ ุงู„ cascade ู„ูˆ
114
00:08:34,420 --> 00:08:37,940
ุฃู†ุง ุญูƒูŠุช ู„ู‡ on delete no action ูŠุนู†ูŠ ุฃู†ุง ุฃุฌูŠ ุฃุญุฐู
115
00:08:37,940 --> 00:08:44,620
ู…ูˆุธู ู…ุด ู‡ูŠุฎู„ูŠู†ูŠ ุฃุญุฐูู‡ ุฅู„ุง ุฅุฐุง ุญุฐูุช ุฃุจู†ุงุกู‡ ุฃูˆู„ู‹ุง ู„ูˆ
116
00:08:44,620 --> 00:08:48,060
ูƒุงู† ู„ู‡ ุชู„ุช ุฃุจู†ุงุก ุจุฏูŠ ุฃุฑูˆุญ ุฃุญุฐูู‡ู… ุชู„ุงุชุฉ ูˆ ุจุนุฏูŠู† ุจุฏูŠ
117
00:08:48,060 --> 00:08:53,420
ุฃุฌูŠ ุฅูŠุด ุฃุญุฐูู‡ ุทุจุนู‹ุง ุงู„ุชู„ุช ุฃุจู†ุงุก ู…ุง ุจู†ูุนุด ุฃุฑูˆุญ ุฃุบูŠุฑ
118
00:08:53,420 --> 00:08:58,700
ุขุจุงุฆู‡ู… ุฅู† ุงู„ุฃุจ ุจูŠุชุบูŠุฑุด ููŠ ุงู„ู‚ุณู… ู„ู…ุง ูƒุงู† manager ู…ุน
119
00:08:58,700 --> 00:09:02,460
ุงู„ู‚ุณู… employee manage ู‚ุณู… ุญูƒูŠู†ุง ุจู†ุฑูˆุญ ุจู†ุบูŠุฑ ุงู„
120
00:09:02,460 --> 00:09:06,160
manager ุงู„ู„ูŠ ุจุฏู‡ ูŠุณุชู‚ูŠู„ ุจู†ุญุท ู…ุฏูŠุฑ ุจุฏุงู„ู‡ ูˆ ุจู†ุญุฐู ุงู„
121
00:09:06,160 --> 00:09:11,140
manager ู„ูƒู† ุฃู†ุง ู„ู…ุง ุจุฏูŠ ุฃุญุฐู ุงู„ุฃุจ ูƒู…ูˆุธู ุจุฏูŠ ุฃุฑูˆุญ
122
00:09:11,140 --> 00:09:15,380
ุฃุบูŠุฑ ุงู„ุฃุจ ู„ู„ุฃุจู†ุงุก ู…ุง ู„ู‡ุงุด ู…ุนู†ู‰ ุงู„ู„ูŠ ุฅู„ู‡ุง ู…ุนู†ู‰ ุฅู†ู‘ูŠ
123
00:09:15,380 --> 00:09:19,220
ุฃุญุฐู ุงู„ุฃุจู†ุงุก ู…ุน ุงู„ุฃุจ ุทุจ ุฃู†ุง ุจุฏู„ ู…ุง ุฃุฑูˆุญ ุฃุนู…ู„ ุชู„ุงุชุฉ
124
00:09:19,220 --> 00:09:22,100
delete ููŠ ุงู„ dependence ู„ู„ุชู„ุช ุฃุจู†ุงุก ูˆ ุจุนุฏูŠู† ุฃุนู…ู„
125
00:09:22,100 --> 00:09:25,710
delete ู„ู„ุฃุจ ูŠุนู†ูŠ ูƒุงู… delete ุตุงุฑุŸ ู„ูˆ ุฃู†ุง ุฑูŠู‘ุญุช ุญุงู„ูŠ
126
00:09:25,710 --> 00:09:29,090
ูˆ ุนู…ู„ุช on delete cascade ู„ุญุงู„ู‡ automatic ู„ู…ุง ู‡ุญุฐู
127
00:09:29,090 --> 00:09:32,290
ุงู„ employee ูŠุฑูˆุญ ูŠุญุฐู ุงู„ุฃุจู†ุงุก ู‡ูŠูƒ ุฃู†ุง ู‡ูƒูˆู† ุณู‡ู‘ู„ุช
128
00:09:32,290 --> 00:09:35,650
ุนู„ู‰ ุญุงู„ูŠ ุจุฑู…ุฌุฉ ุงู„ database ูู‡ูŠ ูุงูŠุฏุฉ ุงู„ on delete
129
00:09:35,650 --> 00:09:41,290
cascade ูุงูŠุฏุชู‡ุง ู‡ุชุณู‡ู„ ุนู„ูŠ ูˆ ุชุญูุธู„ูŠ ุงู„ referential
130
00:09:41,290 --> 00:09:47,030
integrity ุฅู† ู‡ุชุธู„ู‡ุง valid ุงู„ is a hierarchies
131
00:09:48,110 --> 00:09:51,730
ุงู„ุฃุณุฆู„ุฉ ุงู„ู‡ุฑุงุฑูŠูƒูŠุฉ ููŠ ุนู†ุฏูŠ two options ุงู„ุฃูˆู„
132
00:09:51,730 --> 00:09:56,690
general ูˆ ุงู„ุซุงู†ูŠ ุญุงู„ุฉ ุฎุงุตุฉ ุงู„ุฃูˆู„ ุฅู† ุฃุชุนุงู…ู„ ู…ุน ูƒู„
133
00:09:56,690 --> 00:10:02,470
entity ุณุช ู…ู† ู‡ุฏูˆู„ ูƒ table ู„ุญุงู„ูŠ ุฃู†ุง ู‡ูŠุฑุณู… ููŠู‡ุง
134
00:10:02,470 --> 00:10:07,450
ุชู„ุงุชุฉ entities ุฅุฐุง three tables ู„ูˆ ูƒุงู†ุช ุนู†ุฏูŠ
135
00:10:07,450 --> 00:10:10,530
employees ูˆููŠ ุชู„ุช ุฃู†ูˆุงุน ู…ู† ุงู„ employees ู‡ูŠุตูŠุฑูˆุง
136
00:10:10,530 --> 00:10:15,760
ุฃูƒู…ู„ ุฌุฏูˆู„ ุฃุฑุจุนุชู„ุช ุฃู†ูˆุงุน ูˆ ุงู„ parent ุงู„ุฑุฆูŠุณูŠ
137
00:10:15,760 --> 00:10:18,980
ู‡ูŠุตูŠุฑูˆุง ุฃุฑุจุนุฉ ู„ูˆ ูƒุงู† ุนู†ุฏูŠ ุฎู…ุณ ุฃู†ูˆุงุน ู…ู† ุงู„ู…ูˆุธููŠู†
138
00:10:18,980 --> 00:10:23,720
ุฎู…ุณุฉ ูˆ ุงู„ parent ุตุงุฑูˆุง ุณุชุฉ ู‡ุฐุง ุงู„ุญู„ ุงู„ general
139
00:10:23,720 --> 00:10:30,140
ุงู„ุญู„ ุงู„ุซุงู†ูŠ ุฅู†ู‘ูŠ ุฃุณุชุบู†ูŠ ุนู† ุงู„ parent ูˆ ุจุณ ุฃุนู…ู„
140
00:10:30,140 --> 00:10:36,140
table ุฒู…ู† ู„ู„ childs ู„ู„ sub entities ู‡ูŠุณู…ูŠู†ุงู‡ุง
141
00:10:36,140 --> 00:10:40,400
ุงุญู†ุง super entity ูˆู‡ุฐู‡ sub entity parent ูˆ child
142
00:10:41,790 --> 00:10:44,550
ุงู„ุญู„ ุงู„ุซุงู†ูŠ ุฃู†ูŠ ุจุณ ุฃุนู…ู„ ุงู„ sub entities ุฃูˆ ุงู„
143
00:10:44,550 --> 00:10:47,130
child ููŠ ู‡ุฐู‡ ุงู„ุญุงู„ุฉ ู„ู…ุง ุจุฏูŠ ุฃุนู…ู„ ุจุณ ุงู„ sub
144
00:10:47,130 --> 00:10:50,470
entities ู…ุนู†ุงุชู‡ ู„ุงุฒู… ุฃุฌูŠุจ ุงู„ู…ุนู„ูˆู…ุงุช ุงู„ู„ูŠ ู‡ู†ุง ูˆ
145
00:10:50,470 --> 00:10:55,130
ุฃุญุทู‡ุง ู„ูƒู„ table ู…ู†ู‡ู… ูŠุนู†ูŠ ุฃู†ุง ุนู†ุฏูŠ ุงู„ุขู† ู‡ุฐู‡ ู…ูˆุธููŠู†
146
00:10:55,130 --> 00:10:58,050
ู‡ุคู„ุงุก ู…ูˆุธููŠู† ุจุงู„ุณุงุนุฉ hourly employees ูˆ contract
147
00:10:58,050 --> 00:11:02,250
employees ุงู„ู€ hourly employees ููŠู‡ ู„ู‡ู… ุนุฏุฏ ุงู„ุณุงุนุงุช
148
00:11:02,250 --> 00:11:06,290
ุงู„ู„ูŠ ุงุดุชุบู„ูˆู‡ุง ุงู„ู€ hours worked ูˆ ุงู„ู€ hours wages
149
00:11:06,290 --> 00:11:10,160
ุงู„ู„ูŠ ู‡ูŠ ุณุนุฑ ุงู„ุณุงุนุฉ ุงู„ุขู† ู„ุงุญุธูˆุง ู‡ู†ุง ููŠ ุงู„ุฌุฏูˆู„ ู‡ุฐุง
150
00:11:10,160 --> 00:11:13,300
ู…ุง ุนู†ุฏูŠุด ู„ุง ุฑู‚ู… ุงู„ู…ูˆุธู ูˆู„ุง ุงุณู…ู‡ ูˆู„ุง ุฃูŠ ุจูŠุงู†ุงุช
151
00:11:13,300 --> 00:11:16,880
ุซุงู†ูŠุฉ ุนู†ู‡ ู…ูˆุฌูˆุฏุฉ ุฃูŠู†ุŸ ูุฃู†ุง ุฅุฐุง ุจุฏูŠ ุฃู„ุบูŠ ุงู„
152
00:11:16,880 --> 00:11:19,680
employees ุจุฏูŠ ุฃู„ุบูŠู‡ ุจุณ ุจุฏูŠ ุฃุนุชู…ุฏ ุนู„ู‰ ุงู„ sub
153
00:11:19,680 --> 00:11:22,940
entities ู…ุนู†ุงู‡ ุฃู†ูƒ ุจุฏูŠ ุฃุฌูŠุจ ุงู„ู…ุนู„ูˆู…ุงุช ู‡ุฐู‡ ูˆ ุฃุญุทู‡ุง
154
00:11:22,940 --> 00:11:25,720
ููŠ ุงู„ู€ table ู‡ุฐุง ุนุดุงู† ุชูƒูˆู† ุงู„ู…ุนู„ูˆู…ุงุช ูƒุงู…ู„ุฉ ูŠูƒูˆู†
155
00:11:25,720 --> 00:11:31,280
ุนู†ุฏู‡ ุงู„ุงุณู… ูˆุงู„ุฑู‚ู… ูˆุงู„ู€ lot ู…ุน ุงู„ู…ุนู„ูˆู…ุงุช ู‡ุฐู‡ ู„ูƒู„
156
00:11:31,280 --> 00:11:35,500
design ู…ู† ู‡ุคู„ุงุก ู…ุฒุงูŠุง ูˆุนูŠูˆุจ ู†ุดูˆู ู…ุฒุงูŠุง ุงู„ุฃูˆู„ ูˆ
157
00:11:35,500 --> 00:11:41,230
ุนูŠูˆุจ ุงู„ุญู„ ุงู„ุฃูˆู„ ู…ู† ู…ุฒุงูŠุง ุฃู†ู‡ ุฃู†ุง ูŠูƒูˆู† ุนู†ุฏูŠ ุงู„ุซู„ุงุซ
158
00:11:41,230 --> 00:11:44,750
ู…ุน ุงู„ู€ parent ูŠุนู†ูŠ ู…ูˆุฌูˆุฏ ุฃูˆู„ ู…ูŠุฒุฉ ู„ู‡ ุฃู†ู‡ ูŠุฎูู ุนู„ูŠู‘
159
00:11:44,750 --> 00:11:48,270
ููŠ ู…ูˆุถูˆุน ุงู„ู€ columns ุจูŠุตูŠุฑ ุงู„ู€ tables ู‡ุคู„ุงุก ู…ุง ู„ู‡ู…
160
00:11:48,270 --> 00:11:54,030
ุตุบุงุฑ ุญุฌู…ู‡ู… ุฃู‚ู„ ู„ุฃู† ู…ุง ููŠุด ููŠู‡ู… columns ูƒุซูŠุฑุฉ ุงู„ู…ูŠุฒุฉ
161
00:11:54,030 --> 00:11:58,230
ุงู„ุซุงู†ูŠุฉ ุฃู†ู‡ ู„ู…ุง ุจุฏูŠ ุฃุนู…ู„ search ุฃูˆ ุจุญุซ ุนู† ูƒู„
162
00:11:58,230 --> 00:12:01,930
ุงู„ู…ูˆุธููŠู† ุณู‡ู„ ุฌุฏุง ุฃุฌูŠุจ ู…ุนู„ูˆู…ุงุชู‡ู… ู…ู† ุงู„ู€ table
163
00:12:01,930 --> 00:12:05,590
ุงู„ุฑุฆูŠุณูŠ ู„ุฃู† ูƒู„ู‡ู… ู…ูˆุฌูˆุฏูŠู† ููŠู‡ ูƒู„ ุงู„ู…ูˆุธููŠู† ุฃุฑู‚ุงู…ู‡ู…
164
00:12:05,590 --> 00:12:08,510
ูˆุงุณู…ู‡ู… ูˆุงู„ู€ lot number ุจุชุงุนุชู‡ู… ู…ูˆุฌูˆุฏุฉ ููŠ ู‡ุฐุง
165
00:12:08,510 --> 00:12:12,890
ุงู„ุฌุฏูˆู„ ู„ุฐู„ูƒ ุฃู†ุง ุจุนู…ู„ select ู…ู† one table ุจุณ ุจุณ
166
00:12:12,890 --> 00:12:15,650
ุจุนู…ู„ ุงู„ู€ select ู…ู† one table ูŠุนู†ูŠ ุงู„ู€ query ุจุชุงุนุชูŠ
167
00:12:15,650 --> 00:12:21,860
simple ู…ุด complex ู…ุด ู…ุนู‚ุฏุฉ ู‡ุฐู‡ ู…ูŠุฒุฉ ุงู„ุนูŠุจ ุชุจุนู‡ุง ุฃู†ู‡
168
00:12:21,860 --> 00:12:25,060
ู„ูˆ ุฃู†ุง ุจุฏูŠ ู…ุนู„ูˆู…ุงุช ุฅุถุงููŠุฉ ุนู† ุงู„ู…ูˆุธู ู…ุด ุจุณ ุฑู‚ู…ู‡
169
00:12:25,060 --> 00:12:29,560
ูˆุงุณู…ู‡ ุจุฏูŠ ุนุฏุฏ ุงู„ุณุงุนุงุช ุงู„ู„ูŠ ุงุดุชุบู„ู‡ุง ูˆุณุนุฑ ุงู„ุณุงุนุฉ ูˆ
170
00:12:29,560 --> 00:12:33,860
ุฃู…ูˆุฑ ุฒูŠ ู‡ูŠูƒ ู‡ูŠุตูŠุฑ ู„ุงุฒู… ุงู„ู€ query ุจุชุงุนูŠ ุชูƒูˆู† ู…ุนู‚ุฏุฉ
171
00:12:33,860 --> 00:12:40,420
ุฃู† ุฃุฏู…ุด ุจูŠู† ุงู„ุฌุฏูˆู„ูŠู† ุฃุนู…ู„ join ุจูŠู†ู‡ู… ู„ุณู‡ ู…ุง ุฃุฎุฐู†ุงุด
172
00:12:40,420 --> 00:12:43,280
ุงู„ู€ joins ู‡ุถุทุฑ ุฃู† ุฃุนู…ู„ ููŠ ุงู„ู€ select joins ุจูŠู† ุงู„
173
00:12:43,280 --> 00:12:48,890
two tables ุนุดุงู† ุฃุทู„ุน ุงู„ู…ุนู„ูˆู…ุงุช ู‡ุฐู‡ ุนูŠุจ ุงู„ู…ูŠุฒุฉ
174
00:12:48,890 --> 00:12:54,330
ุงู„ุฃุฎูŠุฑุฉ ุงู„ู„ูŠ ู„ู‡ุง ุฃู†ู‡ ู„ูˆ ููŠ ุนู†ุฏูŠ ู…ูˆุธู ู…ุด ุจุนู‚ุฏ ูˆู…ุด
175
00:12:54,330 --> 00:13:02,610
ุจุงู„ุณุงุนุฉุŒ ู…ูˆุธู ุฌุงูŠ ู…ุชุทูˆุนุŒ ุฃูŠู† ู†ุญุทู‡ุŸ ุฃูŠู† ู†ุณุฌู„ู‡ุŸ ู‡ู†ุญุทู‡
176
00:13:02,610 --> 00:13:06,010
ููŠ ุงู„ู€ employees ุงู„ู€ general ู‡ู†ุญุท ู„ู‡ ุจุณ ุงุณู… ูˆุฑู‚ู… ูˆ
177
00:13:06,010 --> 00:13:08,690
ุฎู„ุงุต ุงู„ู…ุนู„ูˆู…ุงุช ุงู„ู€ general ูˆู…ุด ู‡ู†ุถูŠูู‡ ู„ุง ุนู„ู‰ ุงู„
178
00:13:08,690 --> 00:13:11,070
contract ูˆู„ุง ุนู„ู‰ ุงู„ู†ุงุณ ุงู„ู„ูŠ ุจุชุดุชุบู„ ููŠ ุงู„ุณูŠุงุณุฉ ูŠุนู†ูŠ
179
00:13:11,070 --> 00:13:14,410
ู„ูˆ ุฃุฏุง ู…ุชุทูˆุน ุฃูˆ ู…ูˆุธู ู…ู†ุชุฏุจ ุฃูˆ ูƒุฏู‡ ูŠุนู†ูŠ ุงู„ู†ูˆุน ู…ุด
180
00:13:14,410 --> 00:13:17,990
ู…ูˆุฌูˆุฏ ุนู†ุฏูŠ ู‡ุญุทู‡ ุจุณ ููŠ ุงู„ู€ parent ู…ุด ู‡ูŠูƒูˆู† ู…ูˆุฌูˆุฏ ููŠ
181
00:13:17,990 --> 00:13:21,060
ุงู„ู€ child ู„ูƒู† ู„ูˆ ุฃู†ุง ู„ุบูŠุช ุงู„ู€ parent ุงู„ู„ูŠ ู‡ูˆ ุงู„ุญู„
182
00:13:21,060 --> 00:13:25,260
ุงู„ุซุงู†ูŠ ูˆุจุณ ุนู…ู„ุช ุงู„ู€ child ู…ุนู†ุงุชู‡ ู„ุงุฒู… ุฅุฐุง ุจุชุฐูƒุฑูˆุง
183
00:13:25,260 --> 00:13:29,380
ุฃุฎุฐู†ุง ุฅูŠุด ุงุณู…ู‡ ุงู„ู€ coverage constraints ู„ุงุฒู… ูŠูƒูˆู†
184
00:13:29,380 --> 00:13:33,340
ููŠู‡ coverage ูŠุนู†ูŠ ุฃูŠ ู…ูˆุธู ุนู†ุฏูŠ ู„ุงุฒู… ูŠูƒูˆู† ูŠุง ุจุนู‚ุฏ
185
00:13:33,340 --> 00:13:36,240
ูŠุง ุจุงู„ุณุงุนุฉ ู„ุฃู† ุฃู†ุง ู„ุบูŠุช ุงู„ู€ parent ู„ุฃู† ุฃู†ุง ู…ุง ูŠูƒูˆู†
186
00:13:36,240 --> 00:13:40,540
ุนู†ุฏูŠ ู…ุชุทูˆุน ุฃู†ุง ู…ุถุทุฑ ุฃุณุฌู„ู‡ ูŠุง ููŠ ุงู„ุฌู‡ุฉ ูŠุง ููŠ ุงู„ุฌู‡ุฉ
187
00:13:40,540 --> 00:13:44,940
ูŠุง ู…ุง ุฃู‚ุฏุฑ ุฃุฑูˆุญ ุฃู†ุดู‚ table ุฌุฏูŠุฏ ุนู„ุดุงู† ูŠุตูŠุฑูˆุง ุงู„ุซู„ุงุซ
188
00:13:44,940 --> 00:13:49,220
ู…ุน ุจุนุถ ุนุงู…ู„ูŠู† coverage ู„ู„ู€ employees ูˆุจุงู„ุชุงู„ูŠ ุงู„ุญู„
189
00:13:49,220 --> 00:13:53,780
ุงู„ุซุงู†ูŠ ุฅุฌุจุงุฑูŠ ูŠูƒูˆู† ููŠู‡ covering ูˆู…ุง ูŠูƒูˆู†ุด ููŠู‡
190
00:13:53,780 --> 00:13:57,220
overlapping ุงู„ู€ overlapping ุนุดุงู† ู†ุฐูƒุฑ ุฃู†ู‡ ูŠูƒูˆู† ููŠู‡
191
00:13:57,220 --> 00:14:01,000
ุชุฏุงุฎู„ ูŠุนู†ูŠ ุงู„ู…ูˆุธู ูŠูƒูˆู† ุจุนู‚ุฏ ูˆููŠ ู†ูุณ ุงู„ูˆู‚ุช ุจูŠุดุชุบู„
192
00:14:01,000 --> 00:14:04,940
ุจุงู„ุณุงุนุฉ ูุฅุฐุง ููŠ overlapping ุจุฑุถู‡ ุงู„ุญู„ ุงู„ุซุงู†ูŠ
193
00:14:04,940 --> 00:14:09,520
ู…ุง ุจูŠู†ูุนุด ุงู„ูƒู„ุงู… ู‡ุฐุง ู…ุดุฑูˆุน ููŠ ู‡ุฐู‡ ุงู„ู€ slide ู‡ูŠ ุงู„ุญู„
194
00:14:09,520 --> 00:14:12,600
ุงู„ุฃูˆู„ ุงู„ู€ general ุงู„ู„ูŠ ู‡ูˆ ุงู„ู„ูŠ ุจุธุจุท ููŠ ูƒู„ ุงู„ุญุงู„ุงุช
195
00:14:12,600 --> 00:14:16,180
ุฃู†ูŠ ุจุฑูˆุญ ุจุนู…ู„ three relations ู„ู„ู€ employees ู„ู„
196
00:14:16,180 --> 00:14:19,260
hourly employees ูˆ ู„ู„ู€ contract employees ุงู„
197
00:14:19,260 --> 00:14:22,520
alternative ุงู„ุญู„ ุงู„ุซุงู†ูŠ ุฃู†ูŠ ุจุณ ุฃุนู…ู„ two relations
198
00:14:22,520 --> 00:14:26,900
ู„ู„ู…ูŠู† ู„ู„ู€ sub ู„ู„ู€ child ุงู„ู„ูŠ ู‡ู… ุงู„ู…ูˆุธููŠู† ุจุงู„ุณุงุนุฉ ูˆ
199
00:14:26,900 --> 00:14:31,580
ุงู„ู…ูˆุธููŠู† ุจุงู„ุนู‚ุฏ ุงู„ุญู„ ุงู„ู‡ุฏููŠ ู„ู‡ ุดุฑุท ู‡ูŠ ุงู„ุดุฑุท ู…ุญุทูˆุท
200
00:14:31,580 --> 00:14:37,630
ููŠ ุงู„ุขุฎุฑ ุฃู†ู‡ must be covering ู„ุงุฒู… ุงู„ู€ child ู‡ุคู„ุงุก
201
00:14:37,630 --> 00:14:40,850
ุจูŠุนู…ู„ูˆุง covering ู„ู„ู€ parent ุจุดูƒู„ ูƒุงู…ู„ ูˆ no
202
00:14:40,850 --> 00:14:46,090
overlapping ูŠุนู†ูŠ ู„ูˆ ูƒุงู† ุงู„ุนูƒุณ ู„ูˆ no covering ุฃูˆ
203
00:14:46,090 --> 00:14:50,770
ุฅุฐุง ููŠ overlapping ุฃู†ุง ู…ุฌุจุฑ ุฃุณุชุฎุฏู… ุงู„ู€ general
204
00:14:50,770 --> 00:14:56,070
approach ุทูŠุจ ุจุฏู†ุง ู†ุทุจู‚ ุงู„ู€ general approach ุจุฏู†ุง
205
00:14:56,070 --> 00:15:01,830
ู†ุทุจู‚ู‡ ู…ุน ุจุนุถ ุฃูˆู„
206
00:15:01,830 --> 00:15:05,450
ุดูŠุก ุจุฏูŠ ุฃุนู…ู„ table ู„ู€ ุงู„ู€ employees ุญุงุท ููŠู‡ ูƒู… ูƒู„ู…ุฉ
207
00:15:06,890 --> 00:15:11,410
ุซู„ุงุซ ู…ูŠู† ุงู„ู€ primary key ุญุงุฌุฉ ุนู…ู„ ุงู„ู€ table ุงู„ุซุงู†ูŠ
208
00:15:11,410 --> 00:15:15,830
ุงู„ู€ hourly employees ูƒู… ูƒู„ู‡ู… ููŠู‡ ุซู„ุงุซ ุซู„ุงุซ ู…ูŠู†
209
00:15:15,830 --> 00:15:19,670
ุงู„ู„ูŠ ุญูƒู‰ ุซู„ุงุซ ุตุญ ุจุงู„ุถุจุท ุซู„ุงุซ ู‡ุฐู‡ ุนู†ุฏูŠ ุงู„ุงุซู†ูŠู†
210
00:15:19,670 --> 00:15:23,750
ู‡ุคู„ุงุก ูˆุงู„ุซุงู„ุซ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ SSN ุนุดุงู† ุจุฏู‡ ูŠุฑุจุท ุงู„
211
00:15:23,750 --> 00:15:26,970
hourly employees ุฅุฐุง employee ููŠู‡ ุดูŠุก ุจุฏู‡ ูŠุฑุจุท ุฅูŠุด
212
00:15:26,970 --> 00:15:30,170
ุงู„ู„ูŠ ุจูŠุฑุจุท foreign key primary key ุชุจุน ุงู„ู€ employee
213
00:15:30,170 --> 00:15:36,180
ุจุฏู‡ ูŠุตูŠุฑ foreign key ููŠ ุงู„ุฌู‡ุฉ ู‡ุฐู‡ ูู‡ุงุฎุฏ ุงู„ู€ SSN ู„ุฃู†ู‡
214
00:15:36,180 --> 00:15:41,620
primary key ู„ู„ู€ parent ูˆุฃุญุทู‡ .. ุฃุญุทู‡ ู‡ู†ุง ู‡ูŠ ุงู„ู€ SSN
215
00:15:41,620 --> 00:15:47,420
ู‡ูŠูƒูˆู† ุนุจุงุฑุฉ ุนู† foreign key ุจูŠุฃุดุฑ ุนู„ู‰ ุงู„ู€ parent ูˆ
216
00:15:47,420 --> 00:15:51,080
ููŠ ู†ูุณ ุงู„ูˆู‚ุช ู‡ูˆ ุจุฑุถู‡ ุงู„ู€ primary key ุชุจุน ุงู„ุฌุฏูˆู„
217
00:15:51,080 --> 00:15:54,040
ุงู„ุฌุฏูŠุฏ ูŠุนู†ูŠ ู‡ูˆ foreign key ูˆู‡ูˆ ููŠ ู†ูุณ ุงู„ูˆู‚ุช
218
00:15:54,040 --> 00:15:56,940
primary key ู„ูŠุด primary keyุŸ ุงู„ู…ูˆุธููŠู† ู‡ุคู„ุงุก ูƒูŠู ุฏู‡
219
00:15:56,940 --> 00:16:01,820
ูŠู…ูŠุฒู‡ู… ุนู† ุจุนุถุŸ ุฅูŠุด ุงู„ู…ุนู„ูˆู…ุฉ ู„ุง ุจุชุชูƒุฑุฑุŸ ุฑู‚ู… ุงู„ู…ูˆุธู
220
00:16:01,820 --> 00:16:04,680
ุงู„ู…ูˆุธู ู…ู…ูƒู† ูŠุชุดุงุจู‡ ููŠ ุนุฏุฏ ุงู„ุณุงุนุงุช ุงู„ู„ูŠ ุงุดุชุบู„ูˆู‡ุง
221
00:16:04,680 --> 00:16:08,800
ุฎู„ุงู„ ุงู„ุฃุณุจูˆุน ุฃูˆ ุงู„ุดู‡ุฑ ู…ู…ูƒู† ูŠุชุดุงุจู‡ ุจุณุนุฑ ุงู„ุณุงุนุฉ ู„ูƒู†
222
00:16:08,800 --> 00:16:13,600
ู…ุด ู…ู…ูƒู† ูŠุชุดุงุจู‡ ุจุฑู‚ู… ุงู„ู…ูˆุธู ูู‡ูˆ foreign key ู…ู† ุงู„
223
00:16:13,600 --> 00:16:16,020
hourly employees ู„ู„ู€ employees ู‡ูˆ ููŠ ู†ูุณ ุงู„ูˆู‚ุช ุงู„
224
00:16:16,020 --> 00:16:19,820
primary key ุชุจุน ุงู„ู€ table ุงู„ุฌุฏูŠุฏ ู†ูุณ ุงู„ุดูŠุก ุนู†ุฏ ุงู„
225
00:16:19,820 --> 00:16:23,990
contract employees ูƒู… ูƒู„ู‡ู… ุนู†ุฏูŠุŸ ุงุซู†ูŠู† ุงู„ู€ contract
226
00:16:23,990 --> 00:16:29,210
ID ุฑู‚ู… ุงู„ุนู‚ุฏ ูˆุงู„ู€ SSN ู‡ุฌูŠุจู‡ ูˆุฃุญุทู‡ ูƒู€ foreign key ูˆ
227
00:16:29,210 --> 00:16:32,370
ููŠ ู†ูุณ ุงู„ูˆู‚ุช ู‡ูˆ ุงู„ู€ primary key ุชุจุน ุงู„ุฌุฏูˆู„ ุงู„ุฌุฏูŠุฏ
228
00:16:32,370 --> 00:16:43,310
ูŠุนู†ูŠ ุงู„ู€ SSN ู‡ูˆ ุงู„ู€ primary key ููŠ ุงู„ุซู„ุงุซ ู…ุญุทูˆุท
229
00:16:43,310 --> 00:16:46,590
hint ุตุบูŠุฑุฉ ููŠ ุงู„ู€ slide ุฅู†ู‡ ูƒูŠู ู‡ู†ุนู…ู„ ุงู„ุฌุฏูˆู„ ู‡ุฐู‡
230
00:16:46,590 --> 00:16:50,810
ู…ุซุงู„ hourly employees ู‡ูŠูƒูˆู† ููŠู‡ ุงู„ู€ hourly wages ููŠ
231
00:16:50,810 --> 00:16:54,270
ุงู„ู€ hours worked ูˆููŠ ู…ุน ุงู„ู€ assistant ูˆุงู„ู€ assistant
232
00:16:54,270 --> 00:16:59,930
ุญุงุทูŠู† ุชุญุชู‡ุง ุฅูŠุดุŸ ุญุงุทูŠู† ุชุญุชู‡ุง ุฎุท ุทูŠุจ ููŠ ูƒู…ุงู† ู…ุนู„ูˆู…ุฉ
233
00:16:59,930 --> 00:17:03,570
ุงู„ู„ูŠ ุนู„ุงู‚ุฉ ููŠ ุงู„ู€ delete ู„ู…ุง ุฃู†ุดุฃ ุฌุฏูˆู„ ุจู‡ุฐุง ุงู„ุดูƒู„
234
00:17:03,570 --> 00:17:09,150
ู„ูˆ ุฃู†ุง ุญุฐูุช ู…ูˆุธู ู‡ู†ุง ู‡ู„ ุงู„ู…ู†ุทู‚ุฉ ุชุธู‡ุฑ ุจูŠุงู†ุงุชู‡ ู‡ู†ุงุŸ
235
00:17:09,150 --> 00:17:14,270
ู…ุนู†ุงุชู‡ ุฃู†ุง on delete ุฅูŠุด ุจุชุนู…ู„ุŸ cascade ูˆู‡ู†ุง ู†ูุณ
236
00:17:14,270 --> 00:17:19,380
ุงู„ุดูŠุก on deleteุŸ cascade ุงู„ุฌุฏุงูˆู„ ุงู„ุฌุฏุงูˆู„ ุงุซู†ูŠู†
237
00:17:19,380 --> 00:17:22,020
ุชุงุนูˆู† ุงู„ู€ child ู„ุงุฒู… ุฃุญุท ููŠู‡ู… ุนู„ู‰ ุงู„ู€ foreign key
238
00:17:22,020 --> 00:17:28,540
ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ SSN ุฃูƒุชุจ on delete cascade ูˆู‡ูŠ ุงู„ูƒู„ุงู… ู‡ุฐุง
239
00:17:28,540 --> 00:17:32,400
ุจุฑุถู‡ ู…ุถุญ ุฃู†ู‡ ุฅุฐุง ููŠู‡ reference ู„ู€ employee tuple
240
00:17:32,400 --> 00:17:37,420
ุฃู†ุง ุจุฏู‡ ุฃุนู…ู„ู‡ delete ู„ุงุฒู… ุฃุญุฐูู‡ ู…ู† ุฃูŠู†ุŸ ู„ุงุฒู… ุฃุญุฐูู‡
241
00:17:37,420 --> 00:17:40,860
ู…ู† ุงู„ู…ูˆุธููŠู† ุงู„ู„ูŠ ุจุงู„ุณุงุนุฉ ูƒู„ุงู… ู‡ุฐุง ุฃู†ุง ุจุฏู‡ ุฃุชุฑุฌู…ู‡
242
00:17:40,860 --> 00:17:41,960
ุจุฃู†ู‡ cascade
243
00:17:46,360 --> 00:17:52,120
ุจู†ุชูƒู„ู… ุนู† ุงู„ู€ ternary relations ูƒูŠู ู†ุชุฑุฌู…ู‡ู… ู„ู€ tables
244
00:17:52,120 --> 00:17:57,840
ู†ุญูˆู„ู‡ุง ู„ู€ tables ููŠ ู…ุซุงู„ ุณุงุจู‚ ุฃุฎุฐู†ุงู‡ ููŠ ุงู„ู€ chapter
245
00:17:57,840 --> 00:18:01,080
2 ูƒุงู† ุนู†ุฏูŠ tertiary relation ุจูŠู† employees ูˆ
246
00:18:01,080 --> 00:18:05,520
police's dependents ูˆุฑูˆุญู†ุง ุญูˆู„ู†ุง ุงู„ู€ ternary ู„ุฅูŠุดุŸ ู„ู€
247
00:18:05,520 --> 00:18:13,190
two binary ุนู…ู„ู†ุง purchase ุฃู† ุงู„ู…ูˆุธู ุจูŠุดุชุฑูŠ ุจูˆู„ูŠุตุฉ
248
00:18:13,190 --> 00:18:18,450
ุงู„ุชุฃู…ูŠู† ู„ุฃุจู†ุงุฆู‡ ูˆุงู„ุจูˆู„ูŠุตุฉ ู‡ุฐู‡ ุจูŠุณุชููŠุฏ ู…ู†ู‡ุง ูˆุงุญุฏ
249
00:18:18,450 --> 00:18:23,530
ู…ู† ุฃุจู†ุงุฆู‡ ูˆู‡ูŠ ููŠ ุนู†ุฏูŠ key constraint ูˆุนู†ุฏูŠ key
250
00:18:23,530 --> 00:18:28,070
constraint ุทุจ ุชุนุงู„ูˆุง ู†ุนุฏ three entities two
251
00:18:28,070 --> 00:18:33,610
relations ูŠุนู†ูŠ ููŠ ุงู„ุฃุตู„ ู„ุงุฒู… ู†ุนู…ู„ five tables ู„ูƒู†
252
00:18:33,610 --> 00:18:37,090
ูˆุฌูˆุฏ ุงู„ู€ key constraint ู‡ูŠุฎู„ูŠู†ุง ู†ุนู…ู„ ุนู…ู„ูŠุฉ damage
253
00:18:37,090 --> 00:18:43,930
ูู‡ูŠุตูŠุฑ ุนู†ุฏูŠ ู‡ุฐู‡ table ูˆู‡ุฐู‡ ูƒู…ุงู† table ูƒู… table ุตุงุฑูˆุง
254
00:18:43,930 --> 00:18:49,060
ุซู„ุงุซ ุงู„ุฌุฏุงูˆู„ ุงู„ุฃูˆู„ ู…ุด ู‡ุชูƒู„ู… ุนู†ู‡ ู„ุฃู†ู‡ very simple
255
00:18:49,060 --> 00:18:52,920
ุฃุฎุฐู†ุงู‡ ุฃูƒุซุฑ ู…ู† ู…ุฑุฉ create table employees SSN ูˆ
256
00:18:52,920 --> 00:18:56,000
name a lot ูˆุงู„ู€ SSN ู‡ูˆ ุงู„ู€ primary key ุฎู„ุตู†ุง ู…ู†ู‡
257
00:18:56,000 --> 00:19:02,220
ุชุนุงู„ูˆุง ู†ุดูˆู ุชูุงุตูŠู„ ุงู„ู€ two tables ู‡ุคู„ุงุก ุฌุฏูˆู„ ุงู„ุฃูˆู„
258
00:19:02,220 --> 00:19:08,580
ู‡ุณู…ูŠู‡ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ policies ู‡ุญุท ููŠู‡ ุฅูŠุด policy ID ูˆ
259
00:19:08,580 --> 00:19:12,400
cost ูˆุฅูŠุด ูƒู…ุงู† ู‡ุฐู‡ relation ูŠุนู†ูŠ ุจุชุฑุชุจุท ู…ุน ุงู„
260
00:19:12,400 --> 00:19:18,440
employees ูŠุนู†ูŠ ุฅูŠุด ุจุฏูŠ ุฃุฌูŠุจ ุงู„ู€ SSN ู‡ุฌูŠุจู‡ foreign
261
00:19:18,440 --> 00:19:24,160
key ุตุงุฑูˆุง ุนู†ุฏูŠ ุซู„ุงุซ SSN ูˆ police ID ูˆ cost ุงู„
262
00:19:24,160 --> 00:19:26,600
foreign key ู‡ูˆ ุงู„ู€ SSN ูˆุงู„ู€ primary key ู…ูŠู† ุงู„
263
00:19:26,600 --> 00:19:33,230
policy ID ุฎู„ุตู†ุง ู‡ูŠูƒ ู„ุฃ ู…ุด ูƒูุงูŠุฉ ุจู…ุง ุฃู†ู‡ ููŠ key ูˆุงู„
264
00:19:33,230 --> 00:19:36,450
.. ุงู„ู€ key ู‡ุฐุง thick line ูŠุนู†ูŠ total participation
265
00:19:36,450 --> 00:19:41,950
ูŠุนู†ูŠ ู…ู…ู†ูˆุน ูŠูƒูˆู† ููŠ policy ID ู…ุง ู„ู‡ุงุด ู…ูˆุธู ุจูŠู…ู„ูƒู‡ุงุŒ
266
00:19:41,950 --> 00:19:46,090
ุฅูŠุด ู…ุนู†ู‰ ู…ู…ู†ูˆุน ู…ุง ูŠูƒูˆู†ุดุŒ ู…ุง ูŠูƒูˆู†ุด ูุงุฑุบ ูŠุนู†ูŠุŒ not ..
267
00:19:46,090 --> 00:19:50,300
not null not null ู„ุณู‡ ู…ุง ุญูƒูŠู†ุงุด ุนู† ู…ูˆุถูˆุน ุงู„ู€ delete ู
268
00:19:50,300 --> 00:19:54,000
not null ุญุงุฌุฉ ุฃุดูˆู ุดูƒู„ ุงู„ู€ table create table
269
00:19:54,000 --> 00:19:59,440
policies policy ID ูˆ course ูˆ SSN ุงู„ู€ SSN not null
270
00:19:59,440 --> 00:20:02,820
ุนุดุงู† ุฃุถู…ู† ุงู„ู€ total participation ุฃู†ู‡ ูƒู„ policy
271
00:20:02,820 --> 00:20:07,440
ู„ู‡ุง ู…ูŠู†ุŸ ู„ู‡ุง SSN ุทุจ ุฃู†ุง ูƒูŠู ุฃุถู…ู† ุฃู† ุงู„ู€ policy ู‡ุฐู‡
272
00:20:07,440 --> 00:20:11,760
ู…ุด ูุงุถูŠุฉ ุจูŠู‡ ุฃุตู„ุง ุนุจุงุฑุฉ ุนู† ุฅูŠุดุŸ primary key ูˆุงุญู†ุง
273
00:20:11,760 --> 00:20:15,650
ุญูƒูŠู†ุง primary key by default not null ูุฅุฐุง ู„ุง ุงู„ู€ policy
274
00:20:15,650 --> 00:20:22,530
ูุงุถูŠุฉ ูˆู„ุง ุงู„ู€ SSN ูุงุถูŠุฉ ุชู…ุงู… ุงู„ู€ foreign key ุงู„ู€ SSN
275
00:20:22,530 --> 00:20:25,150
ุงู„ู€ references ุงู„ู€ employees ุงู„ู€ delete ู‡ูŠุฎู„ูˆู‡ุง ุงู„ุขุฎุฑ
276
00:20:25,150 --> 00:20:30,310
ุญู†ุชูƒู„ู… ุนู†ู‡ุง ุขุฎุฑ ุดูŠุก ู‡ู†ูŠุฌูŠ
277
00:20:30,310 --> 00:20:34,410
ุนู„ู‰ ุงู„ุฌุฏูˆู„ ุงู„ุซุงู†ูŠ ู„ู†ุนู…ู„ ุฌุฏูˆู„ ุงู„ู€ dependence ู…ุน
278
00:20:34,410 --> 00:20:40,690
ุนู„ุงู‚ุฉ ุงู„ู„ูŠ ู‡ูŠ ุฅูŠุดุŸ ุงู„ู€ beneficiary ุงู„ุงุณุชูุงุฏุฉ ููŠ ุนู†ุฏูŠ
279
00:20:40,690 --> 00:20:46,210
age ูˆุนู†ุฏูŠ name ุจูŠู†ุงู…ูˆุง ุฅูŠุด ุจุฏู†ุง ู†ุฌูŠุจ ูƒู…ุงู†ุŸ policy ID
280
00:20:46,210 --> 00:20:49,810
policy ID ู‡ุฐุง foreign key ุจุฏู‡ ูŠูŠุฌูŠ ุฃูŠู†ุŸ ู…ุน ุงู„
281
00:20:49,810 --> 00:20:55,990
ูˆูŠู† ุงู„ primary key ุจูŠู†ุงู…ุŸ ู„ุฃ ู…ุด ู„ุญุงู„ู‡
282
00:20:55,990 --> 00:21:02,490
ุจูŠู†ุงู… ู…ุน ุงู„ policy ID ุงู„ู€ ุจูŠู†ุงู… ู…ุน ุงู„ policy ID
283
00:21:02,490 --> 00:21:07,210
ูุฃู†ุง ู‡ุงูŠ ุงู„ู€ command ุชุจุน ุงู„ู€ create table DDL
284
00:21:07,210 --> 00:21:07,670
command
285
00:21:10,420 --> 00:21:14,220
create table dependents ุนู†ุฏ ุงู„ู€ B name ุนู†ุฏ ุงู„ู€ age
286
00:21:14,220 --> 00:21:18,380
ู‡ุฏูˆู„ ุฃุฎุฏู†ุงู‡ู… ู…ู† ุงู„ู€ dependent ุงู„ู€ policy ID ุฃุฎุฏู†ุงู‡ุง
287
00:21:18,380 --> 00:21:23,160
ู…ู† ุงู„ู€ relation ุชู…ุงู… ุงู„ู€ primary key combined ุงู„ู€ B
288
00:21:23,160 --> 00:21:28,620
name ุงู„ู„ูŠ ูƒุงู† ุชุญุชู‡ dashed lines ูˆ ุงู„ู€ policy ID ู„ูŠุด
289
00:21:28,620 --> 00:21:31,000
ุงู„ู€ B name ูƒุงู† ุชุญุชู‡ dashed lines ู„ุฃู†ู‡ ุงู„ู€ dependents
290
00:21:31,000 --> 00:21:34,920
weak entity ุจุชุนุชู…ุฏ ุนู„ู‰ ูˆุฌูˆุฏ entity ุชุงู†ูŠุฉ ู„ูŠู‡ุŸ
291
00:21:34,920 --> 00:21:38,750
ุงู„ู€ policy ุฃูˆ ุงู„ู€ employees ุงู„ู€ foreign key ู…ูŠู† ุงู„ู€
292
00:21:38,750 --> 00:21:42,150
policy ID ุงู„ู€ references ู…ูŠู† ุงู„ู€ table ุงู„ู€
293
00:21:42,150 --> 00:21:45,090
policies ุงู„ู„ูŠ ุฃู†ุดุฃู†ุงู‡ุง ู‡ุฐู‡ ุงู„ู€ policy ID ุงู„ู„ูŠ ู‡ูˆ
294
00:21:45,090 --> 00:21:49,930
ุงู„ู€ primary key ุตุงุฑ ููŠ ุงู„ุฌู‡ุฉ ู‡ุฐู‡ ุงู„ู€ foreign key
295
00:21:49,930 --> 00:21:57,810
primary key ูˆ policy ID ุฌูŠุจู†ุง foreign key ุฎู„ุตู†ุง
296
00:21:57,810 --> 00:22:02,790
ุงู„ุฌุฏูˆู„ ุชุนุงู„ู‰ ู†ุดูˆู ุฅูŠุด ุจุฏู‡ ูŠุตูŠุฑ ู„ู…ุง ู†ุนู…ู„ delete ู„ู…ุง
297
00:22:02,790 --> 00:22:07,790
ุฃู†ุง ู…ูˆุธู ุนู†ุฏู‡ ูŠุณุชู‚ูŠู„ ุฃูˆ ูŠุทู„ุน ู…ุจุงุดุฑุฉ ุฃุจู†ุงุฆู‡ ู…ุง
298
00:22:07,790 --> 00:22:11,010
ุจูŠู„ุฒู…ูˆู†ูŠ ุจุฏูŠ ุฃุนู…ู„ู‡ู… delete ูˆุจู…ุง ุฃู† ุงู„ุฃุจู†ุงุก ุจุฏูˆู†ูŠ
299
00:22:11,010 --> 00:22:14,670
ุฃุนู…ู„ู‡ู… delete ู…ุนู†ุงุชู‡ ุงู„ู€ policies ุจุชุงุนุฉ ุงู„ุชุฃู…ูŠู†
300
00:22:14,670 --> 00:22:18,610
ุงู„ู„ูŠ ู„ู‡ู… ุงู„ู„ูŠ ู‡ูŠ ู„ู„ุฃุจู†ุงุก ู…ุง ุจุชู„ุฒู…ู†ูŠ ูุงู†ุง ุจุฏูŠ ู„ู…ุง
301
00:22:18,610 --> 00:22:21,370
ุฃุนู…ู„ delete ู„ู„ู€ employee ูŠุนู…ู„ delete ู„ู„ู€ policies ูˆ
302
00:22:21,370 --> 00:22:24,830
delete ู„ู„ู€ policies ูŠุนู…ู„ delete ู„ู„ู€ dependence ูุจุฏูŠ
303
00:22:24,830 --> 00:22:27,550
ุฃุนู…ู„ on delete cascade ููŠ ุงู„ู€ table ุงู„ุฃูˆู„ ุชุจุน ุงู„ู€
304
00:22:27,550 --> 00:22:29,690
policies ูˆ on delete cascade ููŠ ุงู„ู€ table ุชุจุน ุงู„ู€
305
00:22:29,690 --> 00:22:33,600
dependence ู‡ุฐุง ุงู„ูƒู„ุงู… ุญุทูŠู†ุงู‡ ููŠ ุขุฎุฑ ุตูุฉ on delete
306
00:22:33,600 --> 00:22:37,520
cascade on delete cascade ุทุจุนุง ู„ุงุญุธูˆุง ุงู„ู€ on delete
307
00:22:37,520 --> 00:22:40,860
cascade ุจุชูŠุฌูŠ ุจุนุฏ ุงู„ู€ foreign key ูŠุนู†ูŠ ุฃู†ู‡ ุงู„ู€
308
00:22:40,860 --> 00:22:43,180
foreign key ู‡ุฏู‰ ุฅุฐุง ุงู†ุญุฏุซ ู…ู† ุงู„ุฌุฏูˆู„ ู‡ุฏู‰ ุงุนู…ู„ู‡
309
00:22:43,180 --> 00:22:47,660
delete ู‡ุนู…ู„ delete ู„ู„ู€ dependent ู„ู…ุง ูŠู†ุญุฏุซ ุงู„ู€
310
00:22:47,660 --> 00:22:53,400
policy ID ู‡ุนู…ู„ delete ู„ู„ู€ policy ID ู‡ุฏู‰ ู„ู…ุง ูŠู†ุญุฏุซ
311
00:22:53,400 --> 00:22:58,430
ู…ูŠู† ุงู„ู€ SSN ุงู„ู„ูŠ ู‡ูˆ ุงู„ู…ูˆุธู ูŠุนู†ูŠ ุงู„ุฃุณุงุณ ู…ู† ุงู„ู€
312
00:22:58,430 --> 00:23:02,450
employee ู‡ูˆ ุงู„ู„ูŠ ู„ู…ุง ูŠู†ุญุฐู ู‡ูŠุญุฐู ูุงุฆุฏุฉ ูˆ ู‡ูŠู‚ุฏุฑ
313
00:23:02,450 --> 00:23:10,490
ูŠุญุฐู ุงู„ู„ูŠ ุจุนุฏู‡ ุฒูŠ ุงู„ู€ domino ู„ู…ุง ุจูŠู‚ุน ุญุฌุฑ ุจู‚ู‰ ูƒู„ู‡
314
00:23:10,490 --> 00:23:16,460
ุจู†ุฒู„ ู†ู„ุฎุต ุงู„ู€ syntax ุชุจุน ุจุนุถ ุงู„ุฃูˆุงู…ุฑ ุงู„ู„ูŠ ุฃุฎุฏู†ุงู‡ุง
315
00:23:16,460 --> 00:23:19,580
ุนู†ุฏูŠ ุฃูˆู„ syntax ุงู„ู€ create table ู‡ูŠูƒ ุงุญู†ุง ุดุฑุญู†ุง ุงู„ู€
316
00:23:19,580 --> 00:23:23,480
create table ุจุดูƒู„ ู…ุนู…ู‚ ูˆู…ุฑูŠู†ุง ุนู„ู‰ ุงู„ู€ create view
317
00:23:23,480 --> 00:23:25,780
ูˆู…ุฑูŠู†ุง ุนู„ู‰ ุงู„ู€ create sequence ูˆ ุงู„ู€ create domain
318
00:23:25,780 --> 00:23:29,100
ุงู„ู€ create sequence ูˆ ุงู„ู€ create domain ุบุทูŠุชู‡ู… ุฃู†ุง
319
00:23:29,100 --> 00:23:32,980
ุงู„ุชูุงุตูŠู„ ุงู„ู„ูŠ ุจุชู„ุฒู…ู†ุง ููŠู‡ู… ุจุบุทู†ุงู‡ู… ุงู„ุขู† ุงู„ู€ create
320
00:23:32,980 --> 00:23:35,660
table ููŠ ุนู†ุง ุฃูƒุซุฑ ู…ู† ุดูƒู„ ุฅู„ู‡ุง ูุงู†ุง ู†ุฎุตู‡ู… ููŠ ุงู„ู€
321
00:23:35,660 --> 00:23:38,300
slide ู‡ุฐูŠ ุนุดุงู† ู…ุง ุฃู†ุง ุฃุชู„ุฎุจุทุด ููŠู‡ู… ุงู„ุดูƒู„ ุงู„ุฃูˆู„
322
00:23:38,300 --> 00:23:41,600
ูุฃู†ุง ุนู†ุฏูŠ create table ุงุณู… ุงู„ู€ table ูˆ ุจุญุท ุฃุณู…ุงุก ุงู„ู€
323
00:23:41,600 --> 00:23:46,190
columns data types ุงู„ูˆ ู‡ูŠ domain constraint ูŠุนู†ูŠ ูˆ
324
00:23:46,190 --> 00:23:49,510
ุจุนุฏูŠู† ุจุญุท constraints ุฅุฐุง ุจุฏู‡ ุฃุญุท constraints ุฒูŠ
325
00:23:49,510 --> 00:23:52,170
ุฅูŠุด ุงู„ู€ constraints ุงู„ู„ูŠ ู…ู…ูƒู† ู†ุญุทู‡ู… ู‡ุงูŠู‡ู… primary
326
00:23:52,170 --> 00:23:55,570
key, foreign key, unique ุฃูˆ not null ูˆ ู…ู…ูƒู† ุฃุญุท
327
00:23:55,570 --> 00:23:59,310
default ูˆ ุฃุญุท ุจุนุฏูŠู† ู‚ูŠู…ุฉ ุฅุฐุง ุจุฏู‡ ุฃุนุทูŠ ู„ูƒู„ ู…ู‡ุฏุง
328
00:23:59,310 --> 00:24:01,030
default ุฅูŠุด value
329
00:24:03,330 --> 00:24:07,830
ุงู„ุทุฑูŠู‚ุฉ ุงู„ุชุงู†ูŠุฉ ุฃู†ู‡ ุฃู†ุง ุฃุฌูŠุจ ุงู„ู€ constraints ู‡ุฐู‡
330
00:24:07,830 --> 00:24:11,310
ุจุฏู„ ู…ุง ู‡ูŠ ู…ูˆุฌูˆุฏุฉ ููŠ ู†ูุณ ุงู„ุณุทุฑ ู…ุน ุงู„ู€ column name
331
00:24:11,310 --> 00:24:15,070
ุฃุฌูŠุจู‡ุง ูˆูŠู† ุชุญุช ูู‡ุญุท ุฃู†ุง ุจุณ ุงู„ู€ column name ูˆ ุงู„ู€
332
00:24:15,070 --> 00:24:18,430
data type ูˆ ุฃุญุท ุงู„ู€ default ุฅุฐุง ุจุฏู‡ ุฃุญุท default ูˆ
333
00:24:18,430 --> 00:24:24,270
ุจุนุฏูŠู† ููŠ ุงู„ุขุฎุฑ ุชุญุช ุจุญุท constraint ูˆ ุจุนุทูŠ ุงุณู…ูˆ ุจุญุฏุฏ
334
00:24:24,270 --> 00:24:27,030
ุฅูŠุด ู†ูˆุน ุงู„ู€ constraint primary key ุฃูˆ foreign key ูˆ
335
00:24:27,030 --> 00:24:30,470
ุจุญุท ุจูŠู† ู‚ุณูŠู† ุฃุณู…ุงุก ุงู„ู€ columns ุงู„ู„ูŠ ุจุฏูŠู‡ุง ุชูƒูˆู†
336
00:24:30,470 --> 00:24:33,390
primary ุฃูˆ foreign ู…ุซุงู„ ุนู…ู„ูŠ ุนู„ู‰ ุงู„ูƒู„ุงู… ู‡ุฐุง ู†ูุณ
337
00:24:33,390 --> 00:24:39,650
ุงู„ู…ุซุงู„ ู†ูุณ ุงู„ุฌุฏูˆู„ ุจุณ ุจุชู„ุช ุทุฑู‚ ู…ุฎุชู„ูุฉ ูƒู„ู‡ุง ุตุญ ู„ูˆ
338
00:24:39,650 --> 00:24:42,870
ุญู„ูŠู†ุง ุจุฃูŠ ุทุฑูŠู‚ุฉ ูƒู„ู‡ุง ุตุญ ุฏู‡ ุนู…ู„ create table ู„ู„ู€
339
00:24:42,870 --> 00:24:47,550
department ููŠ ุฃุฑุจุนุฉ columns department number
340
00:24:47,550 --> 00:24:51,410
department name location ู…ูƒุงู† ูˆ manager number ุฑู‚ู…
341
00:24:51,410 --> 00:24:56,250
ุงู„ู…ุฏูŠุฑ ุนุทูŠุช ุงู„ู€ data types ูˆู‡ูŠ ูˆูŠู† ุญุทูŠุช ุงู„ู€
342
00:24:56,250 --> 00:24:59,690
constraints ููŠ ู†ูุณ ุงู„ุณุทุฑ primary key ูˆ unique not
343
00:24:59,690 --> 00:25:07,070
null ู„ุงุญุธูˆุง ุงู„ู€ dname ูƒุงู… constraint ุนู„ูŠู‡ ุงุชู†ูŠู† ุงู„ู€
344
00:25:07,070 --> 00:25:12,010
unique ู„ุญุงู„ ูˆ ุงู„ู€ not null ู„ุญุงู„ ุงู„ุญู„ ุงู„ุชุงู†ูŠ ุงู† ุงุฌูŠุจ
345
00:25:12,010 --> 00:25:16,170
ุงู„ู€ constraints ู‡ุญุทู‡ู… ุชุญุช ุญุทูŠู†ุง ู†ูุณ ุงู„ู…ุนู„ูˆู…ุงุช ู‡ุงูŠ ูˆ
346
00:25:16,170 --> 00:25:19,550
ุฌูŠุจู†ุง ุงู„ู€ primary key ุญุฏุฏู†ุง ุงุณู…ู‡ ุงู„ู„ูŠ ู‡ูˆ department
347
00:25:19,550 --> 00:25:24,090
number ูˆ ุงู„ู€ unique ุญุฏุฏู†ุง ุงุณู…ู‡ ุงู„ู„ูŠ ู‡ูˆ ู…ู† ุงู„ู€ D name
348
00:25:24,090 --> 00:25:28,190
ุงู„ุทุฑูŠู‚ุฉ ุงู„ุชุงู„ุชุฉ ุฃู†ู‡ ุฃู†ุง ู†ูุณ ุงู„ุดูŠุก ุงู„ู€ constraints
349
00:25:28,190 --> 00:25:32,630
ุชุญุช ุจุณ ุจุชุนุทูŠ ุงู„ู€ constraints ุฃุณู…ุงุก ุญุงุฌุฉ ุฃู‚ุจู„ ูƒู„ู…ุฉ
350
00:25:32,630 --> 00:25:36,510
primer ูˆ ุฃู‚ุจู„ ูƒู„ู…ุฉ unique ุญุงุฌุฉ ุฃุญุท constraint ูˆ
351
00:25:36,510 --> 00:25:40,570
ุฃุนุทูŠ ุงุณู… department BK constraint ูˆ ุฃุนุทูŠ ุงุณู… D
352
00:25:40,570 --> 00:25:45,970
name UN ุงุฎุชุตุงุฑ unique ุฅูŠุด ูุงูŠุฏุฉ ุงู„ู€ constraint ุฃุนุทูŠู‡
353
00:25:45,970 --> 00:25:49,150
name ุงู„ูุงูŠุฏุฉ ุงู„ุฃูˆู„ู‰ ููŠ ุญุงู„ุฉ ุงู„ู€ error ุจูŠุตูŠุฑ ูŠุทู„ุนู„ูŠ
354
00:25:49,150 --> 00:25:51,250
ููŠ ุงู„ู€ error messages ุจุณ ูŠู„ุง ุฃุนุฑู ูˆูŠู† ุงู„ู€ error ุฃูˆ
355
00:25:51,250 --> 00:25:54,230
ูˆูŠู† ุงู„ู…ุดูƒู„ุฉ ุงู„ูุงูŠุฏุฉ ุงู„ุชุงู†ูŠุฉ ู„ู…ุง ุจุฏูŠ ุฃุนุฏู„ ุนู„ู‰
356
00:25:54,230 --> 00:25:56,870
ุงู„ุฌุฏูˆู„ ุงู„ุขู† ู‡ู†ุฌูŠ ู†ุชูƒู„ู… ุนู† ุงู„ู€ alter table ุชุนุฏูŠู„
357
00:25:56,870 --> 00:26:00,690
ุงู„ุฌุฏุงูˆู„ ุจูŠุณุงุนุฏู†ูŠ ุฃู† ุฃุญุฐู ุงู„ู€ constraint ู‡ุฐุง ุจุณู‡ูˆู„ุฉ
358
00:26:00,690 --> 00:26:04,010
ู„ุฅู† ู‡ูˆ ุฅู„ู‡ ุงุณู… ูุฃู†ุง ุจุญูƒูŠู„ู‡ drop ุงู„ู€ constraint ุงู„ู„ูŠ
359
00:26:04,010 --> 00:26:08,090
ุงุณู…ู‡ department BK ุงูŠุด ุจุฑูˆุญ ุจุนู…ู„ู‡ ุจูŠุญุฐู ุงู„ุณุทุฑ ู‡ุฐุง
360
00:26:08,090 --> 00:26:12,450
ู…ู† create table ู…ู† ุชุนุฑูŠู ุงู„ุฌุฏูˆู„ ู…ู† ุงู„ู€ schema ุจุชุงุนุฉ
361
00:26:12,450 --> 00:26:16,690
ุงู„ุฌุฏูˆู„ ุฃูˆ ุฅุฐุง ุจุฏู‰ ุฃุถูŠู constraint ุฌุฏูŠุฏ ุจุญูƒูŠู„ู‡ add
362
00:26:16,690 --> 00:26:19,550
constraint ูˆ ุจุนุทูŠู‡ ุงุณู… ูˆ ุจุญูƒูŠู„ู‡ ุฃู†ู‡ ู‡ุฐุง primary
363
00:26:19,550 --> 00:26:22,910
key ุฃูˆ unique ุฃูˆ foreign key ูุงู„ุงุณู… ู„ู„ู€ constraint
364
00:26:22,910 --> 00:26:27,630
ุจูŠุณู‡ู„ ุนู„ูŠู‡ ููŠ ุงู„ุชุนุฏูŠู„ ูˆ ููŠ ุงู„ุจุฑู…ุฌุฉ ุจุดูƒู„ ุนุงู… ู good
365
00:26:27,630 --> 00:26:31,950
practice ู„ู„ู…ุจุฑู…ุฌ ุฃู†ู‡ ูŠุชุนูˆุฏ ูŠุญุท ุฃุณู…ุงุก ู„ ุงู„ู€
366
00:26:31,950 --> 00:26:38,070
constraints ู…ุง ูŠุชุฑูƒู‡ุงุด ูุงุถู„ุฉ ุงู„ู€ alter table ูƒู„
367
00:26:38,070 --> 00:26:40,810
ุดุฑุญู†ุง ุงู„ุณุงุจู‚ ูƒุงู† ูƒู„ู‡ ุนู† ุงู„ู€ create ุจุฏุง ู†ุดูŠุก table
368
00:26:40,810 --> 00:26:43,870
ุจุฏุง ู†ุดูŠุก view ุจุฏุง ู†ุดูŠุก sequence ุจุฏุง ู†ุดูŠุก domain ุทุจ
369
00:26:43,870 --> 00:26:46,650
ุฃู†ุง ุฃู†ุดุฃุช ูˆ ุฎู„ุตุช ูˆ ุจุนุฏูŠู† ุงูƒุชุดูุช ุงู† ููŠู† ุฏูŠ ู…ุดูƒู„ุฉ
370
00:26:46,650 --> 00:26:50,630
ุบู„ุทุช ููŠ ุงู„ุทุจุงุนุฉ ุฃูˆ ุงุชุบูŠุฑุช design ุจุนุฏ ู…ุง ุนู…ู„ู†ุง ุงู„ู€
371
00:26:50,630 --> 00:26:54,430
design ูˆ ู‚ุนุฏู†ุง ูƒ team ู…ุจุฑู…ุฌูŠู† ู…ุน ุจุนุถ ู‚ุนุฏู†ุง ู†ุชู†ุงู‚ุด
372
00:26:54,430 --> 00:26:57,470
ูˆุงุญุฏ ุงู‚ุชุฑุญ ุฃู†ู‡ ุจู†ุถูŠู column ู„ุฃ ุจุฏุง ู†ุญุฐู ู‡ุฐุง ุงู„ู€
373
00:26:57,470 --> 00:27:00,130
column ู„ุฃ ู‡ุฐุง ุงู„ู€ foreign key ุจู†ูุนุด ุจุฏู†ุง column
374
00:27:00,130 --> 00:27:03,410
ุชุงู†ูŠ ูŠูƒูˆู† foreign key ุจุฏุงู„ู‡ ุงู„ุขู† ู‡ุฐุง ุจุงู„ูุนู„ ู…ู…ูƒู† ูŠูƒูˆู†
375
00:27:03,410 --> 00:27:06,310
primary key ุจุฏู†ุง ุฃูŠ ุดูŠุก ุชุงู†ูŠ ุจุฏุงู„ู‡ ุทุจ ุนู…ู„ุชูŠ ุงู„ุชุนุฏูŠู„
376
00:27:06,310 --> 00:27:09,950
ู‡ุงูŠ ูƒูŠู ุฏูŠ ุงุนู…ู„ู‡ุง ุนู†ุฏูŠ ุญู„ ู„ุฃูˆู„ ู†ุฑูˆุญ ุงุนู…ู„ drop
377
00:27:09,950 --> 00:27:13,670
table ุงุญุฐู ุงู„ู€ table ุงู„ู„ูŠ ุฃู†ุง ุฃู†ุดู‚ู‡ ูˆ ุฑุฏ ุงุนู…ู„ู‡
378
00:27:13,670 --> 00:27:18,930
create ู…ู† ุฃูˆู„ ูˆ ุฌุฏูŠุฏ ุจุงู„ุตูŠุบุฉ ุงู„ุฌุฏูŠุฏุฉ ุงู„ุญู„ ู‡ุฐุง ุฅูŠุด
379
00:27:18,930 --> 00:27:22,770
ุนูŠูˆุจู‡ ุฃูˆู„ ุนูŠุจ ู„ู‡ ุฃู† ุงู„ู€ table ู‡ุฐุง ู„ูˆ ูƒู†ุช ุฃู†ุง ู…ุฏุฎู„
380
00:27:22,770 --> 00:27:26,970
ุนู„ูŠู‡ ุจูŠุงู†ุงุช ู„ูˆ ุฃู†ุง ุฏุฎู„ุช ุนู„ูŠู‡ ุจูŠุงู†ุงุช ูˆู…ุนู„ูˆู…ุงุช ุฏู‡
381
00:27:26,970 --> 00:27:30,050
ุนู…ู„ drop ู„ู€ table ุงู„ู€ students ููŠ ุงู„ุฌุงู…ุนุฉ ูˆููŠ ุนู†ุฏูŠ
382
00:27:30,050 --> 00:27:34,370
ุทู„ุงุจ ู…ูˆุฌูˆุฏูŠู† ูƒู„ ุจูŠุงู†ุงุชู‡ู… ุฅูŠุด ู‡ุชุตูŠุฑ ู‡ุถูŠู‚ ู‡ุชุตูŠุฑ ู„ู‡ุง
383
00:27:34,370 --> 00:27:39,370
delete ูุงู„ุญู„ ุงู„ุฃูุถู„ ู…ู† ุฃู† ุงุนู…ู„ drop ุจุฑุฏ ุงุนู…ู„ create
384
00:27:39,370 --> 00:27:45,390
ุฃู† ุงุนู…ู„ alter alter ูŠุนู†ูŠ ุชุนุฏูŠู„ alter table ู‡ุงูŠ ุงุณู…
385
00:27:45,390 --> 00:27:45,790
ุงู„ู€ command
386
00:27:48,680 --> 00:27:53,000
ุงู„ู€ options ุฅูŠุด ู…ู…ูƒู† ุงุนุฏู„ ุชุนุงู„ู‰ ู†ุดูˆู ุฅูŠุด ู…ู…ูƒู† ุฃุนุฏู„
387
00:27:53,000 --> 00:27:55,960
ุจุนู…ู„ alter table ุงุณู… ุงู„ู€ table ุงู„ู„ูŠ ุจุฏูŠ ุงุนุฏู„ู‡ ุทุจุนุง
388
00:27:55,960 --> 00:27:58,980
ู„ุงุฒู… ูŠูƒูˆู† ู…ูˆุฌูˆุฏ ุงุตู„ุง ููŠ ุงู„ู€ database ุงุณู… ุงู„ู„ูŠ ูƒู†ุง
389
00:27:58,980 --> 00:28:02,340
ู†ุนู…ู„ู‡ create ุจู‚ุฏุฑุด ุงุฌูŠ ุงุนู…ู„ alter table employees
390
00:28:02,340 --> 00:28:08,820
ูˆ ุฃู†ุง ู…ุด ุนุงู…ู„ create table employees ู…ู…ูƒู† ุงุนู…ู„
391
00:28:08,820 --> 00:28:14,040
ุฃูˆู„ ุดูŠุก add column ุฃู† ุงุถูŠู column ุฌุฏูŠุฏ ู…ู…ูƒู† ุงุนู…ู„
392
00:28:14,040 --> 00:28:21,540
drop column ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู
393
00:28:21,540 --> 00:28:23,480
ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู…
394
00:28:23,480 --> 00:28:30,660
ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู…
395
00:28:30,660 --> 00:28:32,900
ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู
396
00:28:32,900 --> 00:28:34,960
ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู…
397
00:28:34,960 --> 00:28:43,500
ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู
398
00:28:43,500 --> 00:28:49,950
ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุฃุญุฐู ูƒูˆู„ูˆู… ุงู„ู€ drop column alter
399
00:28:49,950 --> 00:28:55,010
table ุงุณู… ุงู„ู€ table employees drop column salary ุจุณ
400
00:28:55,010 --> 00:28:58,070
ุจู„ุฒู…ู†ูŠ ุงุณู…ู‡ ุจู„ุฒู…ู†ูŠุด ู…ุนู„ูˆู…ุฉ ุชุงู†ูŠุฉ ูŠุนู†ูŠ ู…ุฌุฑุฏ ู…ุง ุญุท
401
00:28:58,070 --> 00:29:04,770
ุงุณู…ู‡ ุจูŠุญุฐูู‡ ูุจูŠุญุฐู ุงู„ู€ column ู‡ุฐุง ู„ูˆุญุฏู‡ ุฃุถุญูƒุŸ ุจุญุฐู
402
00:29:04,770 --> 00:29:09,590
column ุฃูˆ ุจุถูŠู column ุงู„ุนู…ู„ูŠุฉ ุงู„ุชุงู†ูŠุฉ ู…ู…ูƒู† ุงุนู…ู„
403
00:29:09,590 --> 00:29:15,220
modify ู„ู„ู€ column ุชุนุฏูŠู„ ุนู„ู‰ ุงู„ู€ column ุชุนุฏูŠู„ ู‚ุฏ ูŠุดู…ู„
404
00:29:15,220 --> 00:29:19,040
modify ูˆ ุจุญุท ุงุณู…ู‡ salary ู…ู…ูƒู† ุฃุบูŠุฑ ุงู„ู€ type ุชุจุนู‡ ููŠ
405
00:29:19,040 --> 00:29:21,920
ุงู„ุญุงู„ุฉ ุงู„ุฃูˆู„ู‰ ู…ุซู„ุง ุฃู†ุง ุฃุถูุช salary ูˆ ุฃุนุทูŠุชู‡
406
00:29:21,920 --> 00:29:25,100
integer ุจุนุฏูŠู† ุฃุฌูŠ ุงู„ุชุนุงู…ู„ ุงู„ู…ุงู„ูŠ ูŠุญูƒูˆุง ู„ูŠ ู„ุง ูŠุง ุนู…
407
00:29:25,100 --> 00:29:28,980
ููŠ ู…ูˆุธููŠู† ููŠ ูƒุณูˆุฑ ููŠ ุฑูˆุงุชุจู‡ู… ุจุธุจุทุด ุงู„ู€ integer
408
00:29:28,980 --> 00:29:34,380
ูุญุงุฌุฉ ู…ู† ุงู„ู€ alter table employees modify salary ูˆ
409
00:29:34,380 --> 00:29:41,340
ุฃุฎู„ูŠู‡ุง real ุฃูˆ number 6.2 ู…ุซู„ุง number 6.2 ูŠุนู†ูŠ ุฃู†
410
00:29:41,340 --> 00:29:45,370
ููŠู‡ุง ูƒุณุฑูŠู† ุนุดุฑูŠุฉ ู…ู…ูƒู† ูƒู…ุงู† ุฃุบูŠุฑ ููŠ ุงู„ู€ constraint
411
00:29:45,370 --> 00:29:48,430
ุจุชุงุนุฉ ุงู„ู€ table ุฅุฐุง ูƒู†ุง ู†ุทู„ู†ุง ุงู„ู„ูŠ ู‚ุงุนุฏ ูŠู‚ูˆู„ ู„ุฃ
412
00:29:48,430 --> 00:29:53,270
ุจุฏู†ุงุด ู†ุทู„ู†ุง ุงู„ู„ูŠ ู‡ูŠุดูŠู„ู‡ุง ู…ู…ูƒู† ุงุญู†ุง ุงู„ู…ูˆุธู ุงูˆู„ ู…ุง
413
00:29:53,270 --> 00:29:56,750
ูŠุชุนูŠู† ู†ุนูŠู†ู‡ ุจุฏูˆู† ุฑุงุชุจ ุงุณุจูˆุน ุฒู…ู† ุนุงุจุฑ ู…ุง ู†ุดูˆู ูˆ
414
00:29:56,750 --> 00:30:00,030
ู†ู‚ุฑุฑ ู†ุนู…ู„ ุฅุฌุฑุงุกุงุช ู†ุดูˆู ูƒุงู… ู‡ูŠูƒูˆู† ุฑุงุชุจู‡ ู„ุฃู†ู‡ ู…ุง
415
00:30:00,030 --> 00:30:03,730
ู†ุญุณุจู„ู‡ ุณู†ูˆุงุช ุฎุจุฑุฉ ูŠู…ูƒู† ู…ุง ู†ุญุณุจู„ูˆุด ูู…ู…ูƒู† ูŠุฒูŠุฏ ุฃูˆ
416
00:30:03,730 --> 00:30:07,190
ูŠู†ู‚ุต ู„ุฃ ุฎู„ูŠู‡ null ูุงู†ุง ู…ู…ูƒู† ุงุดูŠู„ ุงู„ู€ constraints
417
00:30:07,190 --> 00:30:10,950
ุนู†ู‡ ุฃูˆ ุงุถูŠู constraints ุฌุฏูŠุฏุฉ ุฃูˆ ุงุญุทู„ู‡ default
418
00:30:10,950 --> 00:30:16,630
value ุฒูŠ ูƒุฃู†ูŠ ุจู†ุดุฃ ุงู„ู€ column ู…ู† ุฃูˆู„ ูˆ ุฌุฏูŠุฏ ู„ูƒู†
419
00:30:16,630 --> 00:30:20,260
ุจุฏู†ุง ู†ุฑุงุนูŠ ุดุบู„ุฉ ููŠ ุงู„ู€ modify column ุฃุญูŠุงู†ุง ุงู„ู€
420
00:30:20,260 --> 00:30:22,580
database ุจุชุฎู„ูŠู†ูŠุด ุฃุนู…ู„ modify ู…ุชู‰ ุจุชุฎู„ูŠู†ูŠุด ุงู„ู€
421
00:30:22,580 --> 00:30:25,240
database ุฃุนู…ู„ modify ู…ู† ุงู„ุญุงู„ุงุช ุงู„ู„ูŠ ุจุชุฎู„ูŠู†ูŠุด ุฃุนู…ู„
422
00:30:25,240 --> 00:30:32,040
ููŠู‡ุง modify ุฃู†ู‡ ู„ูˆ ูƒุงู† ุงู„ table ู…ุซู„ุง ูƒุงู† character
423
00:30:32,040 --> 00:30:36,860
ูˆ ุจุฏูŠ ุฃุญูˆู„ู‡ ู„ integer ู…ุด ู‡ุชุฎู„ูŠู‡ ู„ุฃู†ู‡ ู…ุซู„ุง ู‡ูŠูƒูˆู†
424
00:30:36,860 --> 00:30:40,440
ู…ุฎุฒู† ุจูŠุงู†ุงุช ููŠ ุงู„ table integer ุจุฏูŠ ุฃุชุญูˆู„ู‡ุง
425
00:30:40,440 --> 00:30:44,160
character ู…ุด ู‡ุชุญูˆู„ู‡ุง ุจุณ character ู…ู…ูƒู† ูŠุชุญูˆู„ ู„
426
00:30:44,160 --> 00:30:48,490
variable character variable character ุนุดุฑูŠู† ูˆ ุจุนุฏูŠู†
427
00:30:48,490 --> 00:30:51,590
ุงุฌูˆุง ุงุนุชุฑุถูˆุง ุญูƒูˆู„ูŠ ุนุงู…ู„ ุนุดุฑูŠู† ุญุฑู ุจูƒููŠุด ุจุฏู†ุง ูŠูˆู…
428
00:30:51,590 --> 00:30:56,650
ุฎู…ุณูŠู† ูุงุฑูˆุญ ุงุนู…ู„ modify ุงุณู… ุงู„ column ูˆ ุงุญูˆู„ู‡ ู…ู†
429
00:30:56,650 --> 00:30:58,510
variable character ุนุดุฑูŠู† ู„ variable character
430
00:30:58,510 --> 00:31:01,830
ุฎู…ุณูŠู† ุจู…ุดูŠ
431
00:31:02,680 --> 00:31:05,780
ุงู„ุชุญูˆูŠู„ ุจูŠู† ุงู„ data types ุฃุญูŠุงู†ุงู‹ ุจูƒูˆู† tricky
432
00:31:05,780 --> 00:31:09,460
ุฃุญูŠุงู†ุงู‹ ุจูƒูˆู† ููŠ ูŠุนู†ูŠ ู…ู…ูƒู† ุจุนุถ ุงู„ุฃู…ูˆุฑ ู…ุงุชู…ุดูŠุด ู…ุนุงู‡
433
00:31:09,460 --> 00:31:13,560
ุจุฏูŠ ุฃุชุฃูƒุฏ ู…ู†ู‡ุง ุฅู…ุง ุจุงู„ุชุฌุฑูŠุจ ุฃูˆ ุชุฑุฌุน ู„ ุงู„ manuals
434
00:31:13,560 --> 00:31:16,420
ุชุจุน ุงู„ database ุจุชุดุชุบู„ ุนู„ูŠู‡ุง ู…ู† database ู„
435
00:31:16,420 --> 00:31:19,020
database ุงู„ restrictions ู‡ูŠ ุจุชุฎุชู„ู ุจุณ ู„ู…ุง ู†ูƒูˆู†
436
00:31:19,020 --> 00:31:21,860
ู…ุชุฐุงูƒุฑูŠู† ุฃู†ู‡ ู…ุด ูƒู„ ุงู„ data types ู…ู…ูƒู† ู†ุนู…ู„ู‡ุง
437
00:31:21,860 --> 00:31:27,440
modify ู„ data type ู†ูˆุน ุชุงู†ูŠ ู…ู…ูƒู† ู†ุถูŠู ูƒู…ุงู†
438
00:31:27,440 --> 00:31:30,200
constraints ุฃูˆ ู†ุญุฐู constraints
439
00:31:32,180 --> 00:31:34,740
ูŠุนู†ูŠ ุงู†ุง ู†ุงุณูŠ ุงุถูŠูู‡ primary key ู…ู…ูƒู† ุงุฑุฌุน ุงุถูŠูู‡
440
00:31:34,740 --> 00:31:38,820
ู†ุงุณูŠ ุงุถูŠู foreign key ู…ู…ูƒู† ุงุถูŠูู‡ ููŠ ุนู†ุฏูŠ foreign
441
00:31:38,820 --> 00:31:43,040
key ุจุฏู‡ ุงุณุชุบู†ู‰ ุนู†ู‡ ู…ู…ูƒู† ุงุนู…ู„ู‡ drop ู‡ุณุชุฎุฏู… .. ุทุจุนุง
442
00:31:43,040 --> 00:31:46,640
ู„ู…ุง ู‡ุณุชุฎุฏู… drop constraint ุจุญุท ุงูŠุด ุงุณู…ู‡ ู‡ุฐู‡ ูุงุฆุฏุฉ
443
00:31:46,640 --> 00:31:51,840
ู…ู† ููˆุงุฆุฏ ูˆุฌูˆุฏ ุงู„ุงุณู… ููŠ ุงู„ู…ุซุงู„ ุงู„ู„ูŠ ุฃุฎุฏู†ุงู‡ ููŠ
444
00:31:51,840 --> 00:31:54,940
create table ุงู†ู‡ ุงู†ุง ุงุนู…ู„ create table ูˆ ุงุญุทู„ู‡
445
00:31:54,940 --> 00:32:00,390
constraint ุงุณู… ู‡ุฐุง ุงู„ุงุณู… ุจุณู‡ู„ ุนู„ูŠู‡ ุนู…ู„ูŠุฉุงู„ุงู„ุชุฑ
446
00:32:00,390 --> 00:32:04,330
ุจุฅู†ูŠ ุงู†ุง ุงุญุฐู ุงู„ constraint ู‡ุฐุง ุงุญูƒูŠู„ู‡ ุงู„ุชุฑ ุชุงุจู„
447
00:32:04,330 --> 00:32:08,790
employees drop constraint ุงู„ู„ูŠ ุงุณู…ู‡ ุจุญุท ุงุณู… ุงู„
448
00:32:08,790 --> 00:32:11,450
constraint ูˆ ุจุนู…ู„ู‡ drop ู†ูุณ ุงู„ุดูŠุก ู„ู…ุง ุงุถูŠู
449
00:32:11,450 --> 00:32:15,350
constraint ูˆ ุจุญุฏุฏ ุงู„ type ุชุจุนู‡ ุงู†ู‡ foreign primary
450
00:32:15,350 --> 00:32:20,550
not null unique whatever ู‡ุงูŠ
451
00:32:20,550 --> 00:32:26,630
ุฃู…ุซู„ุฉ ุนู…ู„ูŠุฉ ุนู„ู‰ ุงู„ syntax ุชุจุน ุงู„ุงู„ุชุฑ ุงูˆู„ ู…ุซุงู„ ุงู„ุชุฑ
452
00:32:26,630 --> 00:32:31,440
ุชุงุจู„ุฃูŠุด ุงุณู… ุงู„ table department ุงูŠุด ุจุฏูŠ ุงุนู…ู„ ุจุฏูŠ
453
00:32:31,440 --> 00:32:37,860
ุงุถูŠู ุนู„ูŠู‡ ูƒู„ู…ุฉ ุงุณู…ูŠ ู… count ุนุฏุฏ ุงู„ู…ูˆุธููŠู† ุงูˆ ุฑู‚ู…ู‡ู…
454
00:32:37,860 --> 00:32:41,200
ุนุฏุฏ ุงูƒู… ู…ูˆุธู ู…ูˆุฌูˆุฏ ููŠ ุงู„ department ุงู„ department
455
00:32:41,200 --> 00:32:44,840
ู‡ุฐุง ููŠ ุนุดุฑ ู…ูˆุธููŠู† ุนุดุฑูŠู† ุชู„ุงุชูŠู† ุจุฏูŠ ุงุนุทูŠู‡ number
456
00:32:44,840 --> 00:32:51,120
ุงุชู†ูŠู† default zero ู‡ุงูŠ ุงุถูู†ุง ูƒู„ู…ุฉ ุฌุฏูŠุฏ ุจุฏูŠ ุงุนู…ู„
457
00:32:51,120 --> 00:32:55,260
alter table ุจุฑุถู‡ ู„table department add constraint
458
00:32:56,430 --> 00:33:00,230
debit bk primary key ู…ูŠู†ุŸ debit number ุฏูู†ุงู„ู‡
459
00:33:00,230 --> 00:33:04,170
primary key ู„ูˆ ูƒู†ุง ู…ุด ุถุงูŠููŠู†ู‡ primary key alter
460
00:33:04,170 --> 00:33:10,050
table department ูˆ ุจุฏูŠ ุฃุถูŠู ุนู„ูŠู‡ constraint debit
461
00:33:10,050 --> 00:33:13,510
manager foreign key ุงุณู…ู‡ ุนุจุงุฑุฉ ุนู† foreign key
462
00:33:13,510 --> 00:33:20,990
references table ู…ุนูŠู† ุจุฏูŠ ุฃุนู…ู„ alter table ูˆ ุฃุนู…ู„
463
00:33:20,990 --> 00:33:24,850
modify ู„ูƒู„ู‡ ุงู„ู„ูŠ ู‡ูˆ ุชุจุน ุงู„ imp countุจุฏู„ ู…ุง ูƒุงู†
464
00:33:24,850 --> 00:33:28,270
number ุงุชู†ูŠู† ุจุฏูŠ ุงุนู…ู„ู‡ number ุชู„ุงุชุฉ ูˆ ู„ุงุญุธูˆุง ู‡ุฐู‡
465
00:33:28,270 --> 00:33:33,130
ุงู„ุนู…ู„ูŠุฉ ุบุงู„ุจุง ู…ุณู…ูˆุญุฉ number ุชู„ุงุชุฉ ุจุฑุถู‡ ู…ู† ุงู„ู…ุดุงูƒู„
466
00:33:33,130 --> 00:33:35,610
ุงู„ู„ูŠ ุจุชุณูŠุฑ ู…ุด ุจุณ ุชุญูˆูŠู„ ู…ู† integer ู„ character ูƒู…ุงู†
467
00:33:35,610 --> 00:33:42,970
ู„ูˆ ูƒุงู† ุนู†ุฏู‰ ุจุงู„ุงุตู„ ู„ูˆ ูƒุงู† ููŠ ุงู„ุงุตู„ ู‡ูˆ number ุณุชุฉ ูˆ
468
00:33:42,970 --> 00:33:49,890
ุงุฌูŠ ุจุนุฏูŠู† ุงุนู…ู„ู‡ number ุงุชู†ูŠู† ู…ุด ู‡ูŠุฑุถู‰ุฅู† ุฃุฒูŠุฏู‡
469
00:33:49,890 --> 00:33:53,670
ู‡ูŠุฑุถู‰ ุจุณ ุฅู† ุฃู†ุง ู†ุฒู„ู‡ ู…ุด ู‡ูŠุฑุถู‰ ู„ูŠุด ู„ุฃู† ู„ูˆ ูƒู†ุช ุฃู†ุง
470
00:33:53,670 --> 00:34:00,030
ู…ุฎุฒู† ููŠู‡ ุฅุดูŠ ุณุช ุฃุฑู‚ุงู… ูƒูŠู ุจูŠุตูŠุฑ ุฑู‚ู…ูŠู† ู‡ุฐู‡ ุจุฑุถู‡ ู…ู†
471
00:34:00,030 --> 00:34:02,670
ุงู„ุฃู…ูˆุฑ ุงู„ู„ูŠ ู…ู…ูƒู† ุชุนู…ู„ูŠ ู…ุดูƒู„ุฉ ููŠ ุงู„ modify
472
00:34:02,670 --> 00:34:07,290
ูุงู„ู…ูˆุฏูŠูุงูŠ ุจุฏู‡ุง ุฅูŠุด ุจุฏู‡ุง ุฅู† ุงู„ูˆุงุญุฏ ูŠุชุฃูƒุฏ ู‡ู„ ู…ู…ูƒู†
473
00:34:07,290 --> 00:34:10,970
ูŠุนู…ู„ modify ูˆู„ุง ู„ุฃ ู…ุด ุฏุงูŠู…ุง ู…ู…ูƒู† ูŠุนู…ู„ modify ุฒูŠ ู…ุง
474
00:34:10,970 --> 00:34:11,590
ู‡ูˆ ุจุชุตูˆุฑ
475
00:34:15,270 --> 00:34:19,270
ูƒูŠู ู…ู…ูƒู† ู†ุนู…ู„ delete ู„ู„ table ุงุญู†ุง ุฃุฎุฏู†ุง delete
476
00:34:19,270 --> 00:34:22,390
command ุจุณ ุญูƒูŠู†ุง ุงู„ delete ุงู„ู„ูŠ ุฃุฎุฏู†ุงู‡ุง ุนุจุงุฑุฉ ุนู†
477
00:34:22,390 --> 00:34:30,490
DDL ูˆู„ุง DML DML ูู‡ูŠ ุจุชุญุฐู ุฅูŠุด ุงู„ rows ุงู„ records
478
00:34:30,490 --> 00:34:34,550
ู…ุงุจุชุญุฐูุด ุงู„ table ูƒู„ู‡ ู†ูุณ ุงู„ table ุงู„ schema ุฅุฐุง
479
00:34:34,550 --> 00:34:37,410
ุจุฏู‰ ุฃุญุฐู ุงู„ schema ุฃูˆ ุงู„ table ู†ูุณู‡ ู„ุงุฒู… ุฃุณุชุฎุฏู…
480
00:34:37,410 --> 00:34:42,750
drop table ูˆ ุงู„ drop table ุจุชุถูŠุน ุงู„ schema ูˆ ุจุชุถูŠุน
481
00:34:42,750 --> 00:34:47,680
ุงู„ instances ุงู„ู„ูŠ ุฌูˆุงู‡ ูƒู„ู‡ drop table ุจุญุท ุงุณู… ุงู„
482
00:34:47,680 --> 00:34:50,880
table ุงู„ู„ู‰ ุจุฏู‰ ุงุญุฐูู‡ ูˆ ุจุนุฏูŠู‡ุง ุจุญูƒูŠ ุงู…ุง ุงู†ู‡ cascade
483
00:34:50,880 --> 00:34:58,900
ุงูˆ restrict ุงูŠุด ู‡ุฏูˆู„ ุงู„ options ุงูˆู„ ุดุฆ ุงู„ restrict ุงู„
484
00:34:58,900 --> 00:35:02,680
restrict ู…ุนู†ุงุชู‡ ููŠ ุนู†ุฏู‰ ุงู†ุง ููŠ ุงู„ database ุฒู‰ recycle
485
00:35:02,680 --> 00:35:06,800
bin ู„ู…ุง ุจุชุญุฐููˆุง ู…ู„ู ุนู„ู‰ ุงู„ูƒู…ุจูŠูˆุชุฑ ูˆูŠู† ุจุฑูˆุญ ุงุณุฃู„ุช
486
00:35:06,800 --> 00:35:09,900
ุงู„ู…ู‡ู…ู„ุฉ ุฏู‰ ุงู„ recycle bin ู…ู…ูƒู† ุชุนู…ู„ูŠู„ู‡ ุงุณุชุฑุฌุงุน
487
00:35:09,900 --> 00:35:14,660
restore ุงู„ุงู† ููŠ ููŠ ุงู„ database ู†ูุณ ุงู„ุดูŠุก ู…ู…ูƒู† ุงู†ุง
488
00:35:14,660 --> 00:35:20,320
ู„ู…ุง ุงุนู…ู„ drop table ุงู„ table ู‡ุฐุง ุจูŠุฑูˆุญ ุนู„ู‰ recycle
489
00:35:20,320 --> 00:35:22,800
bin ู…ูˆุฌูˆุฏุฉ ููŠ ุงู„ database ูˆ ู…ู…ูƒู† ุงุนู…ู„ู‡ ุงุณุชุฑุฌุงุน ู„ูƒู†
490
00:35:22,800 --> 00:35:27,040
ุงุฐุง ุญูƒูŠุชู„ู‡ restrict ูŠุนู†ูŠ ุงู†ุง ุจุฏู‡ ุงุญุฐูู‡ ู†ู‡ุงุฆูŠ ูˆ ุญุชู‰
491
00:35:27,040 --> 00:35:31,280
ู…ุงูŠุฑูˆุญุด ูƒู…ุงู† ุนู„ู‰ ุงู„ recycle bin ูˆุจุงู„ุชุงู„ูŠ ู…ุงููŠุด
492
00:35:31,280 --> 00:35:38,000
ู…ุฌุงู„ ุงู†ูŠ ุงุณุชุฑุฌุนู‡ ู†ู‡ุงุฆูŠุง ุฒูŠ shift delete ุงู„ุจุฑู‚ ู‡ุฐู‡
493
00:35:38,000 --> 00:35:44,910
shift delete ุงู„ู€ Cascade Constraints ุฅูŠุด ุจุชุนู…ู„ ู‡ุงูŠุŸ
494
00:35:44,910 --> 00:35:48,690
ุงู„ุขู† ุงู„ table ู‡ุฐุง ู„ูˆ ููŠ ุฌุงูŠ ุนู„ูŠู‡ foreign keys ู…ู†
495
00:35:48,690 --> 00:35:51,510
tables ุชุงู†ูŠุฉ ู„ู…ุง ุฃุฌูŠ ุฃุนู…ู„ู‡ drop ู…ุด ู‡ูŠุฎู„ูŠู†ูŠ ุฃุนู…ู„ู‡
496
00:35:51,510 --> 00:35:53,950
drop ูŠุนู†ูŠ ุฃู†ุง ุฏู‡ ุฃุญุฐู table ุงู„ู…ูˆุธููŠู† ุงู„ employees
497
00:35:53,950 --> 00:35:57,890
ูˆููŠ ุนู†ุฏ ุงู„ dependents ููŠู‡ู… foreign key ุจูŠู‚ุดุฑ ุนู„ู‰
498
00:35:57,890 --> 00:36:02,730
ุฑู‚ู… ุงู„ู…ูˆุธู ุงู„ุฃูˆู„ุงุฏ ุจูŠู‚ุดุฑูˆุง ุนู„ู‰ ุงู„ู…ูˆุธููŠู† ุงู„ุฃุจุงู‡ู…
499
00:36:02,730 --> 00:36:04,850
ูุงู†ุง ุจุฏูŠ ุฃุนู…ู„ drop ู„ู„ employees ู…ุด ู‡ุฎู„ูŠู†ูŠ ุฃุนู…ู„
500
00:36:04,850 --> 00:36:09,510
drop ู„ู„ employees ุฅู„ุง ุฅุฐุง ุญูƒูŠุชู„ู‡ drop table ุงุณู…ู‡
501
00:36:09,510 --> 00:36:13,590
cascade ููŠ ู‡ุฐู‡ ุงู„ุญุงู„ุฉ ู‡ูŠุญุฐู table name please ูˆ ุฃูŠ
502
00:36:13,590 --> 00:36:20,130
reference ุนู„ูŠู‡ ู‡ูŠุญุฐู ุงู„ references ุงู„ู„ูŠ ุนู„ูŠู‡ ุนูƒุณ
503
00:36:20,130 --> 00:36:26,750
ุงู„ cascade restrict ุงู„ู„ูŠ ู‡ูˆ ุฏู‡ ุงู„ option by
504
00:36:26,750 --> 00:36:31,250
default ุงู„ database ุจุชูƒูˆู† ุนุงู…ู„ุฉ drop table name
505
00:36:31,250 --> 00:36:35,390
restrict ู„ูƒู† ุฅุฐุง ุฃู†ุง ู…ุงุจุฏูŠุด restrict ุจุฏูŠ ุฃุญุฐู ูˆ
506
00:36:35,390 --> 00:36:41,860
ุฃุญุฐู ุฃูŠ ุฅุด ูŠุจุดุฑ ุนู„ูŠู‡ ุจุฑูˆุญ ุจุญุท cascade ู‡ุฐู‡ ู…ุซุงู„ drop
507
00:36:41,860 --> 00:36:46,340
table students restrict drop table students cascade ููŠ
508
00:36:46,340 --> 00:36:50,100
ู‡ุฐู‡ ุงู„ุญุงู„ุฉ ู„ูˆ ุทุงู„ุจ ู…ุณุฌู„ ููŠ ู…ุณุงู‚ุงุช ุฃูŠ ุชุณุฌูŠู„ ู„ู‡ ููŠ
509
00:36:50,100 --> 00:36:59,660
ู…ุณุงู‚ุงุชู‡ ุญูŠู†ุญุฐู ูˆุญูŠู†ุดุบู„ ุจู†ู„ุฎุต
510
00:36:59,660 --> 00:37:02,700
ุงู„ chapter ุงู„ู„ูŠ ุนู†ุฏู†ุง ูู‡ูŠ ุฃู‡ู… ู…ูุงู‡ูŠู… ุงู„ chapter
511
00:37:03,770 --> 00:37:06,110
ุชูƒู„ู…ู†ุง ููŠ ุงู„ chapter ู‡ุฐุง ุนู† ุงู„ tabular
512
00:37:06,110 --> 00:37:09,170
representation ูŠุนู†ูŠ ุชู…ุซูŠู„ ุงู„ data ุนู„ู‰ ุดูƒู„ ุฌุฏุงูˆู„
513
00:37:09,170 --> 00:37:13,190
ุชุงุจู„ุฒ ุชุงุจูŠูˆู„ุฑ ูˆุณู…ูŠู†ุง ู‡ุฐู‡ ุงู„ representation ุณู…ูŠู†ุงู‡ุง
514
00:37:13,190 --> 00:37:17,530
relational database model ุงูˆ ุงู„ relational model
515
00:37:17,530 --> 00:37:21,690
ุญูƒูŠู†ุง ุงู† ุงู„ relational model ู‡ูŠ simple ุณู‡ู„ ู„ุงู†ู‡ุง
516
00:37:21,690 --> 00:37:27,230
ู†ุธุงู… ุฌุฏุงูˆู„ intuitive ูˆู‡ูŠ ุญุงู„ูŠุง ุงู„ most widely used
517
00:37:27,230 --> 00:37:30,970
ููŠ ุงู„ุนุงู„ู… ู„ู„ databases ุงุชูƒู„ู…ู†ุง ุนู† integrity
518
00:37:30,970 --> 00:37:33,770
constraints ูˆุญูƒูŠู†ุง ุงู†ู‡ ู„ุงุฒู… ูŠูƒูˆู†ูˆุง ุฏุงุฆู…ุง ุงู„
519
00:37:33,770 --> 00:37:37,150
integrity constraints true ู„ูƒู„ ุงู„ instances ุจุชุงุนุช
520
00:37:37,150 --> 00:37:39,870
ุงู„ database ูˆู…ู‡ู…ุฉ ุงู„ DBMS ุงู†ู‡ ูŠุญุงูุธ ุนู„ูŠู‡ู… ุงู†
521
00:37:39,870 --> 00:37:43,830
ูŠูƒูˆู†ูˆุง true ูˆู…ุง ูŠูƒุณุฑู‡ู… ู…ุด violation ูˆู…ุณุฆูˆู„ูŠุชูŠ ุงู†ุง
522
00:37:43,830 --> 00:37:49,170
ุงู† ุงุนุฑูู‡ู… ู„ู„ database ู…ู† ุฎู„ุงู„ ุงู„ create table ุญูƒูŠู†ุง
523
00:37:49,170 --> 00:37:52,490
ู…ู† ุฃู†ูˆุงุน ุงู„ integrity constraints ุงู„ู„ู‰ ูƒุงู†ุช ุนู†ุฏู‰
524
00:37:52,490 --> 00:37:55,470
ู…ู† ุฃู‡ู…ู‡ุง ุงู„ primary ูˆ ุงู„ foreign key ูˆ ุงุชูƒู„ู…ู†ุง ุนู†
525
00:37:55,470 --> 00:38:00,130
ุงู„ not null ูˆ ุงู„ unique ุงุชูƒู„ู…ู†ุง ูƒู…ุงู† ุนู† ุงู„ domain
526
00:38:00,130 --> 00:38:02,210
constraints ูˆ ุญูƒูŠู†ุง ุฃู† ุฃุจุณุท ุฃู†ูˆุงุน ุงู„ domain
527
00:38:02,210 --> 00:38:06,630
constraints ู‡ูˆ ุงู„ data type ู„ูƒู† ู…ู…ูƒู† ุฃุถูŠู ู…ุนู„ูˆู…ุงุช
528
00:38:06,630 --> 00:38:09,330
ุฒูŠุงุฏุฉ ุจุฅู†ูŠ ุฃุนู…ู„ create domain ุฎุงุต ููŠู‡ ูˆ ุฃุณุชุฎุฏู… ู„ู„
529
00:38:09,330 --> 00:38:13,890
check ุฃูˆ ุฅู† ุฃุนู…ู„ check ููŠ ู†ูุณ ุงู„ create table ูุฃู†ุง
530
00:38:13,890 --> 00:38:19,040
ุฃุฒูŠุฏ ู‚ุฏุฑุชูŠ ููŠ ุงู„ domain constraints ุงุชูƒู„ู…ู†ุง ุฅู† ุงู„
531
00:38:19,040 --> 00:38:21,900
query language ุงู„ู„ูŠ ุจู†ุณุชุฎุฏู…ู‡ุง ุงุณู…ู‡ุง SQL Structured
532
00:38:21,900 --> 00:38:25,340
Query Language ูˆุญูƒูŠู†ุง ุฅู†ู‡ุง ุจุชุชู…ูŠุฒ ู…ู† ุฃู† ุชุณุชุฎุฏู… ู„ุบุฉ
533
00:38:25,340 --> 00:38:28,600
ุฅู†ุฌู„ูŠุฒูŠุฉ ุทุจูŠุนูŠุฉ Natural Language ุฅู†ู‡ุง ุณู‡ู„ุฉ ููŠ
534
00:38:28,600 --> 00:38:31,340
ุงู„ูƒุชุงุจุฉ Create Table, Drop Table, Alter Table,
535
00:38:31,460 --> 00:38:35,600
Insert, Update, Delete ูƒู„ู‡ุง ูƒู„ู…ุงุช ูˆุงุถุญุฉ ู…ุงููŠุด ููŠู‡ุง
536
00:38:35,600 --> 00:38:39,750
ุชุนู‚ูŠุฏุงุช ุงู„ุจุฑู…ุฌุฉ ุงู„ู„ูŠ ููŠ ู„ุบุงุช ุงู„ุจุฑู…ุฌุฉ ุงู„ุชุงู†ูŠุฉ ุญูƒูŠู†ุง
537
00:38:39,750 --> 00:38:44,130
ุงู†ู‡ ููŠ ู‚ูˆุงุนุฏ ู„ุชุญูˆูŠู„ ุงู„ ER diagram ู„ relation
538
00:38:44,130 --> 00:38:47,750
ุงู„ู…ูˆุฏูŠู„ ุดุฑุงุญุชู‡ู… ุงู†ุง ุงู„ูŠูˆู… ู…ู„ุฎุตุชู‡ู… ูƒูŠู ุจู†ุญูˆู‘ู„ ุงู„
539
00:38:47,750 --> 00:38:50,510
entity ู„ table ูƒูŠู ุจู†ุญูˆู‘ู„ ุงู„ relation ู„ table ูƒูŠู
540
00:38:50,510 --> 00:38:52,850
ู„ู…ุง ูŠูƒูˆู† ููŠ ุจูŠู† ุงู„ entity ูˆ ุงู„ relation key
541
00:38:52,850 --> 00:38:56,730
constraint ุจู†ุฌุฏ ุจู†ุฌุฏ tables ููŠ ุจุนุถ ูƒูŠู ู†ุชุนุงู…ู„ ู…ุน
542
00:38:56,730 --> 00:39:00,390
ุงู„ุฅุฒุฃุฉ Hierarchy ูƒูŠู ู‡ู†ุชุฑุฌู…ู‡ุง ู„ุนุฏุฏ ู…ู† ุงู„ entities
543
00:39:00,390 --> 00:39:04,430
ูƒู„ ูƒู„ุงู… ู‡ุฐุง ู„ุฎุตู†ุงู‡ ู‡ุฐุง ูƒุงู† ู…ูˆุถูˆุน ุดุจุชุฑู†ุง ุงู„ู…ุฑุฉ
544
00:39:04,430 --> 00:39:08,950
ุงู„ู‚ุงุฏู…ุฉ ุงู† ุดุงุก ุงู„ู„ู‡ ุงู„ู…ูุฑูˆุถ ู†ุจุฏุฃ ููŠ chapter 5 ุณูˆู
545
00:39:08,950 --> 00:39:13,430
ู†ุชูƒู„ู… ุงูƒุชุฑ ุนู† ุงู„ SQL commands ุจ details ุงูƒุชุฑ ูˆ
546
00:39:13,430 --> 00:39:17,930
ู†ุชูƒู„ู… ุนู† ุงู„ BL SQL ุงู„ู„ูŠ ู‡ูŠ commands ุงุถุงููŠุฉ ูƒูŠู
547
00:39:17,930 --> 00:39:21,790
ู…ู…ูƒู† ู†ุนู…ู„ functions ูˆ procedures ูˆ triggers ููŠ ุงู„
548
00:39:21,790 --> 00:39:23,490
database ุจุญูŠุซ ุงู†ู‡ ูŠูƒูˆู† ุนู†ุฏู‰