abdullah's picture
Add files using upload-large-folder tool
07594e5 verified
raw
history blame
61.2 kB
1
00:00:20,550 --> 00:00:24,490
ุจุณู… ุงู„ู„ู‡ ุงู„ุฑุญู…ู† ุงู„ุฑุญูŠู… ุงู„ูŠูˆู… ุจู†ูƒู…ู„ ููŠ ุงู„ chapter 6
2
00:00:24,490 --> 00:00:28,670
ุงู„ู„ูŠ ุจุชูƒู„ู… ุนู† ุงู„ procedural language SQL, PLSQL
3
00:00:28,670 --> 00:00:33,430
ูˆุตู„ู†ุง ุงู„ู…ุฑุฉ ุงู„ู…ุงุถูŠุฉ ู„ุนู†ุฏ ุงู„ุญุฏูŠุซ ุนู† ุงู„ person type
4
00:00:33,430 --> 00:00:37,430
ูˆุญูƒูŠู†ุง ุนู† ุงุณุชุฎุฏุงู…ู‡ุง ู…ูŠู† ุจุชุฐูƒุฑู„ูŠ ุงูŠุด ูƒุงู† ูุฆุฉ ุงุณุชุฎุฏุงู…
5
00:00:37,430 --> 00:00:42,230
ุงุณุชุฎุฏุงู… ุงู„ type ููƒุฑุฉ
6
00:00:42,230 --> 00:00:45,930
ุงุณุชุฎุฏุงู… ุงู„ type ุฃู†ู‡ ุจุฏู„ ู…ุง ุฃุนู…ู„ variable ูˆุญุฏุฏ ู„ู‡
7
00:00:45,930 --> 00:00:51,250
type ุงู„ู„ูŠ ุฃู†ุง ู…ู…ูƒู† ุฃุนู…ู„ variable ูˆุฃุฑุจุทู‡ ู…ุน column
8
00:00:51,250 --> 00:00:55,790
ููŠ table ุจุญูŠุซ ุฃู†ู‡ ูŠู†ุณุฎ ุฃูˆ ูŠุงุฎุฐ ู†ูุณ ุงู„ type ุชุจุน ุงู„
9
00:00:55,790 --> 00:00:59,610
column ุงูŠุด ู…ุง ุจุชุบูŠุฑ ุงู„ column ู‡ุฐุง ุงู„ type ุชุจุนู‡
10
00:00:59,610 --> 00:01:03,950
ุจุชุบูŠุฑ ุงู„ type ุชุจุน ุงู„ variable dynamically ูุจุงู„ุชุงู„ูŠ
11
00:01:03,950 --> 00:01:07,950
ุจุฑูŠุญู†ูŠ ููŠ ูƒุชุงุจุฉ ุงู„ code ู„ู…ุง ุจุบูŠุฑ ู…ุง ุฃุถุทุฑ ุฅู† ุฃุฌู‰
12
00:01:07,950 --> 00:01:10,970
ุฃุบูŠุฑ ููŠ ุงู„ code ุจุชุงุนุฉ ุงู„ functions ูˆ ุงู„ procedures
13
00:01:10,970 --> 00:01:17,580
ุงู„ู…ูƒุชูˆุจุฉ ููŠ ุงู„ PL SQL ุดุจูŠู‡ ุจุงู„ type ู‡ุฐุง example
14
00:01:17,580 --> 00:01:21,820
ุฃุฎุฏู†ุงู‡ ุนู„ู‰ ุงุณุชุฎุฏุงู… ุงู„ type ู…ู† ุงู„ุจุงุฑุญุฉ ุดุจูŠู‡ ุจุงู„ type
15
00:01:21,820 --> 00:01:28,400
ููŠ ุนู†ุฏูŠ ุงู„ raw type ุงู„ raw type ููƒุฑุชู‡ุง ููŠ ุญุงู„ุฉ ุงู„
16
00:01:28,400 --> 00:01:33,340
type ูƒู†ุง ู†ุฃุฎุฐ ุงู„ type ุชุจุน column ู…ุญุฏุฏ ุงู„ raw type
17
00:01:33,340 --> 00:01:37,600
raw ูŠุนู†ูŠ ุณุทุฑ ุฃูˆ ุตู ูุงุญู†ุง ู‡ู†ุงุฎุฏ ุงู„ type ุจุชุงุนุฉ ุณุทุฑ
18
00:01:37,600 --> 00:01:43,690
ูƒุงู…ู„ ููŠ ุงู„ table ูŠุนู†ูŠ ุจุฏู„ ู…ุง ุฃุฌู‰ ุฃุนู…ู„ variable ู„ู„
19
00:01:43,690 --> 00:01:48,310
name ูˆ variable ู„ู„ salary ูˆ variable ู„ู„ ID ูˆ
20
00:01:48,310 --> 00:01:51,930
variable ู„ุชุงุฑูŠุฎ ุงู„ู…ูŠู„ุงุฏ ุจุฏู„ ู…ุง ุฃุนู…ู„ ู„ูƒู„ ูˆุงุญุฏ ู…ู†ู‡ู…
21
00:01:51,930 --> 00:01:55,670
variable ุจุฏูŠ ุฃุนู…ู„ variable ูˆุงุญุฏ ุฌูˆุง ุฃุฌุฒุงุก ุฒูŠ array
22
00:01:55,670 --> 00:01:57,970
ุฃูˆ ุฒูŠ ูƒูŠู ุฃุฎุฐุชูˆ ุงู„ array ุฃูˆ ุงู„ dictionary ุฃูˆ ุงู„
23
00:01:57,970 --> 00:02:00,950
tuples ููŠ ุงู„ python ุงู‡ ุจุฏูŠ ุฃุนู…ู„ variable ูˆุงุญุฏ
24
00:02:00,950 --> 00:02:03,790
ุนุจุงุฑุฉ ุนู† container ููŠ ู…ุฌู…ูˆุนุฉ ุงู„ variables ู‡ุฏูˆู„
25
00:02:03,790 --> 00:02:07,370
ุจุฏูˆู† ู…ุนุฑูุฉ ุงู„ type ุชุจุนู‡ู… ุจุฑุถู‡ ู†ูุณ ููƒุฑุฉ ุงู„ type ุฃู†ู‡
26
00:02:07,370 --> 00:02:12,230
ูŠุฃุฎุฐ ุงู„ type ุจุดูƒู„ automatic ูุฃู†ุง ุญุงุฌุฉ ุฃุนู…ู„ .. ุฃุณุชุฎุฏู…
27
00:02:12,230 --> 00:02:15,070
ุงู„ู„ูŠ ู‡ูŠ ู‡ุฐู‡ ุงู„ raw type ุฃุณุชุฎุฏู…ู‡ุง ุงู„ type ูƒู†ุง
28
00:02:15,070 --> 00:02:19,690
ู†ุณุชุฎุฏู…ู‡ุง ู…ุน .. ุงูŠุด ู†ูƒุชุจุŸ ู†ูƒุชุจ ุงุณู… ุงู„ table dot ุงุณู…
29
00:02:19,690 --> 00:02:27,290
ุงู„ column ูˆู†ุญุท ุงู„ person type ุตุญุŸ ู„ุฃู† ุงู„ raw type
30
00:02:27,290 --> 00:02:32,690
ู„ุงุฒู… ู…ุด ุงุณู… ุงู„ column ุจุณ ู‡ุงุฎุฏ ุงุณู… ุงู„ table ูˆ ุฃุญุท
31
00:02:32,690 --> 00:02:39,550
ุงู„ู„ูŠ ู‡ูŠ ุงูŠุดุŸ raw type ูˆ ุจู‡ูŠูƒ ุฃู†ุง ุจุนู…ู„ variable
32
00:02:40,610 --> 00:02:43,890
ุจูŠุญุชูˆูŠ ุนู„ู‰ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ variables ุจุชุดู…ู„ ูƒู„ ุงู„
33
00:02:43,890 --> 00:02:49,670
columns ู„ู…ูŠู† ููŠ ุงู„ table ุงู„ู„ูŠ ุฃู†ุง ุญุทูŠุช ุงุณู…ู‡ ู†ุฃุฎุฐ
34
00:02:49,670 --> 00:02:53,670
example ุนู„ูŠู‡ุง ู„ูˆ ุฃู†ุง ุนู…ู„ุช variable ุจุงู„ุดูƒู„ ู‡ุฐุง
35
00:02:53,670 --> 00:02:59,450
ุณู…ูŠุชู‡ department record ุงุณู… ุงู„ variable department
36
00:02:59,450 --> 00:03:04,030
record department underscore rec ุงู„ type ุชุจุนู‡
37
00:03:04,030 --> 00:03:08,420
departments ุฌุฏูˆู„ ุงู„ departments row type ูŠุนู†ูŠ ุตุงุฑ
38
00:03:08,420 --> 00:03:12,700
ุงู„ department record ุจูŠุญุชูˆูŠ ุนู„ู‰ ุณุทุฑ ููŠู‡ ู…ุฌู…ูˆุนุฉ ู…ู†
39
00:03:12,700 --> 00:03:16,480
ุงู„ variables ุจุชู…ุซู„ ุงู„ columns ุงู„ู„ูŠ ู…ูˆุฌูˆุฏุฉ ู…ูŠู† ููŠ
40
00:03:16,480 --> 00:03:20,020
ุงู„ departments ู„ูˆ ุงู„ departments ู‡ุฐุง ููŠู‡ ุฃุฑุจุนุฉ
41
00:03:20,020 --> 00:03:23,920
columns ุงู„ department track ู‡ูŠูƒูˆู† ุฌูˆุง ูƒุงู† variable
42
00:03:23,920 --> 00:03:28,340
ุฃุฑุจุนุฉ variables ู„ูˆ ุฃูˆู„ variable ุนุจุงุฑุฉ ุนู† ูƒุงู† ุนู† ID
43
00:03:28,340 --> 00:03:33,920
ุงู„ุซุงู†ูŠ ู…ุซู„ุง ูƒุงู† date ุงู„ู„ูŠ ุจุนุฏู‡ ูƒุงู† variable
44
00:03:33,920 --> 00:03:42,590
character ุงู„ู„ูŠ ุจุนุฏู‡ ูƒุงู† number ููŠ table departments
45
00:03:42,590 --> 00:03:48,070
ุงู„ู€ depth track ู‡ูŠ ุฏู‡ ู‡ูŠูƒูˆู† ุฌูˆุง ุงู„ุฃุฑุจุนุฉ variables
46
00:03:48,070 --> 00:03:52,570
ุจู†ูุณ ุงู„ุชุฑุชูŠุจ ุจู†ูุณ ุงู„ุฃู†ูˆุงุน ุจู†ูุณ ุงู„ types ู„ูˆ ุบูŠุฑู†ุง
47
00:03:52,570 --> 00:03:56,650
ุฃูŠ type ู…ู† ู‡ุฏูˆู„ ู…ุจุงุดุฑุฉ ุจุชุบูŠุฑ ุงู„ types ุงู„ู„ูŠ ุฌูˆุง ุงู„
48
00:03:56,650 --> 00:03:59,410
department track ู‡ุฐุง ุจู‚ู‰ ุงูŠุด ุจุชููŠุฏู†ูŠุŸ ุจุชููŠุฏู†ูŠ ุฅู†
49
00:03:59,410 --> 00:04:02,650
ุฃู†ุง ู„ูˆ ุนู…ู„ุช functions ุฃูˆ procedures ุฃุชุนุงู…ู„ ู…ุน ูƒู„
50
00:04:02,650 --> 00:04:06,750
ุงู„ columns ุงู„ู„ูŠ ููŠ ุงู„ table ุจุชุนู…ู„ select star ูˆุงุฎุฏ
51
00:04:06,750 --> 00:04:09,310
ูƒู„ ุงู„ columns ุจุฏู„ ู…ุง ุฃุนู…ู„ ู…ุฌู…ูˆุนุฉ ูƒุจูŠุฑุฉ ู…ู† ุงู„
52
00:04:09,310 --> 00:04:12,370
variables ูˆุฃุดูˆู ูƒู„ ูˆุงุญุฏ ุงู„ type ุชุจู‚ู‰ ู…ุชุฃูƒุฏ ุฅู† ู†ูุณ
53
00:04:12,370 --> 00:04:15,770
ุงู„ type ุงู„ู„ูŠ ููŠ ุงู„ุฌุฏูˆู„ ู‡ูŠูƒ ุจุฎุณุฑ ุงู„ูƒู„ุงู… ู‡ุฐุง ูƒู„ู‡ ููŠ
54
00:04:15,770 --> 00:04:21,150
ุณุทุฑ ูˆุงุญุฏ ู…ู† ุงู„ code ุณุทุฑ code ูˆุงุญุฏ ุจูŠุญู„ู‘ูŠ ุงู„ู…ุดูƒู„ุฉ
55
00:04:21,150 --> 00:04:28,910
ู‡ุงูŠ example ุนู„ู‰ ุงุณุชุฎุฏุงู… ุงู„ raw type ุญุงุฌุฉ
56
00:04:28,910 --> 00:04:33,570
ุฃุนู…ู„ declare ูˆู‡ูŠ ุงู„ begin ูˆู‡ูŠ ุงู„ end ููŠ ุงู„ declare
57
00:04:33,570 --> 00:04:37,610
ุนู…ู„ุช variable ูˆุงุญุฏ ุจุณ ุงูŠุด ุงุณู…ู‡ ุงูŠุด ู†ูˆุนู‡ imp
58
00:04:37,610 --> 00:04:41,810
percent row type ูŠุนู†ูŠ ุฃู†ุง ุจุฏูŠ ุขุฎุฐ ุณุทุฑ ูƒุงู…ู„ ู…ู† ุฌุฏูˆู„
59
00:04:41,810 --> 00:04:47,870
ู…ูŠู† ุงู„ imp begin select star into x from imp ูŠุนู†ูŠ
60
00:04:47,870 --> 00:04:53,030
ุฃู†ุง ู‡ุงุฎุฏ ู…ู† ุฌุฏูˆู„ ุงู„ imp ุณุทุฑ ูƒุงู…ู„ select star ูˆุฎุฒู†
61
00:04:53,030 --> 00:04:58,130
ูˆูŠู†ุŸ ุฌูˆุง ุงู„ x where ุงู„ employee number ุจูŠุณุงูˆูŠ ุงู„ุฑู‚ู…
62
00:04:58,130 --> 00:05:02,460
ู‡ุฐุง ุงู„ู„ูŠ ุนู†ุฏูŠ ุจุนุฏู‡ุง ุญุงุฌุฉ ุฃุทุจุน ุทุจุนู‹ุง ูƒูŠู ู‡ุชุนุงู…ู„ ู…ุน
63
00:05:02,460 --> 00:05:07,700
ุงู„ X ูˆูƒุฃู†ู‡ุง ุฌุฏูˆู„ ู‡ุฃุนู…ู„ X.ename ู‡ุชุทุจุน ู„ูŠ ุงู„ column
64
00:05:07,700 --> 00:05:13,500
ุงู„ู„ูŠ ุงุณู…ู‡ ename ู„ู…ุง ุฎุฒู†ู‘ุงู‡ุง ููŠ ุงู„ X X.sal ู‡ูŠุทุจุน ู„ูŠ
65
00:05:13,500 --> 00:05:16,720
ุงู„ variable ุงู„ column ุชุจุน ุงู„ salary ู…ู† ุงู„ variable
66
00:05:16,720 --> 00:05:23,960
X X.job ู‡ูŠุทุจุน ู„ูŠ ุงู„ type ุชุจุน ุงู„ job ุฃุณู…ุงุก ุงู„ูƒูˆู„ูˆู…ุฒ ูˆ
67
00:05:23,960 --> 00:05:26,820
ูƒูŠู ุฃุชุนุงู…ู„ ู…ุน ุฃุณู…ุงุก ุงู„ูƒูˆู„ูˆู…ุฒ ู…ุน ุงู„ table ุงุณู… ุงู„
68
00:05:26,820 --> 00:05:29,460
table dot ุงุณู… ุงู„ูƒูˆู„ูˆู… ุจูŠุตูŠุฑ ุฃุชุนุงู…ู„ ู…ุน ุงู„ variable
69
00:05:29,460 --> 00:05:33,320
ุจู†ูุณ ุงู„ุทุฑูŠู‚ุฉ ู„ุฃู†ู‡ ุตุงุฑ ุฌูˆุง ุฃูƒุซุฑ ู…ู† ูƒูˆู„ูˆู…
70
00:05:33,320 --> 00:05:38,460
substitution
71
00:05:38,460 --> 00:05:43,940
ุฃุญูŠุงู†ู‹ุง ุจุฑุถู‡ ููŠ ุงู„ code ูŠูƒูˆู† ููŠ ุนู†ุฏูŠ ู‚ูŠู… ุฃู†ุง ู…ุด ุนุงุฑู
72
00:05:43,940 --> 00:05:48,850
ุฃุนูˆุถ ุนู†ู‡ุง ุจูƒุงู… ู…ุด ุนุงุฑู ูƒู… ุจุฏู‡ ุฃุญุท ุงู„ุฑู‚ู… ูุจุฏูŠ ุฃุนุทูŠ
73
00:05:48,850 --> 00:05:51,650
ุฅุดุงุฑุฉ ู„ู„ code ุชุจุน ุงู„ PLSQL ุฅู†ู‡ ู„ู…ุง ูŠุชู†ูุฐ ู‡ุฐุง ุงู„
74
00:05:51,650 --> 00:05:55,130
code ูŠุณุฃู„ ุงู„ user ุนู† ุงู„ variable ู‡ุฐุง ูˆูŠุทู„ุจ ู…ู†ู‡
75
00:05:55,130 --> 00:05:58,670
ู‚ูŠู…ุฉ ุฅู„ู‡ ูŠุทู„ุจ ุงู„ู‚ูŠู…ุฉ ู…ู† ุงู„ user ูŠุฎู„ู‘ูŠ ุงู„ user
76
00:05:58,670 --> 00:06:02,510
ูŠุนุทูŠู‡ุง input ููŠ ุงู„ python ุงูŠุด ูƒู†ุชูˆุง ุจุชุนู…ู„ูˆุงุŸ
77
00:06:02,510 --> 00:06:06,970
ุจุชุนู…ู„ูˆุง ููŠู‡ scan ูˆู„ุง read ูˆู„ุง ุงูŠุด ุงุณู…ู‡ุง input
78
00:06:06,970 --> 00:06:10,350
ูƒู†ุชูˆุง ุชุณุชุฎุฏู…ูˆุง function ุงุณู…ู‡ุง input ุงู„ุขู† ุฃู†ุง ุจุณ
79
00:06:10,350 --> 00:06:14,270
ุจุณุชุฎุฏู… ุจุญุท ุงุณู… ุงู„ variable ุจุญุท ุฅุดุงุฑุฉ ุงู„ end
80
00:06:14,270 --> 00:06:18,410
percent ู‡ูŠ ุฒูŠ ุงู„ end ุจุณ ุจุญุทู‡ุง ู‚ุจู„ ุงุณู… ุงู„ variable
81
00:06:18,410 --> 00:06:22,350
ุจูŠุตูŠุฑ ู‡ูˆ ุจูŠุนุฑู ุฅู† ุงู„ variable ู‡ุฐุง ู…ุง ู„ู‡ ู‚ูŠู…ุฉ ุนู†ุฏูŠ
82
00:06:22,350 --> 00:06:27,450
ู„ุงุฒู… ุฃุณุฃู„ ุงู„ user ุฃุญูƒูŠู„ู‡ ุงุนุทูŠู†ูŠ ู‚ูŠู…ุฉ ู„ู„ variable
83
00:06:27,450 --> 00:06:33,390
ู‡ุฐุง ุจุฏู†ุง ู„ู‡ ู‚ูŠู…ุฉ ุจู†ุนู…ู„ substitution ู„ู‚ูŠู…ุฉ ุงู„
84
00:06:33,390 --> 00:06:38,770
variable ููŠ ุงู„ time of execution ุนู†ุฏ ุงู„ุชู†ููŠุฐ
85
00:06:40,290 --> 00:06:44,150
ู‡ู†ุดูˆูู‡ุง ูƒูŠู ุฎู„ูŠู†ูŠ ุฃุนู…ู„ ู…ุซุงู„ ุนุงู…ู„ ุนู„ูŠู‡ุง ููŠ ุงู„ูŠูˆู…
86
00:06:44,150 --> 00:06:53,970
ุงู„ู…ูุฑูˆุถ ุจุงุต ูŠุงุฎุฐูƒู… ุนู„ู‰ X ุจู‚ู‰ ูƒุงุนุชูŠู†ุชูŠู† ูƒู†ุช
87
00:06:53,970 --> 00:06:56,910
ุฃู†ุง ุนุงู…ู„ function ูˆุนู…ู„ุช ู„ู‡ุง drop ุนุดุงู† ู†ุดูˆู ูƒูŠู ุฏู‡
88
00:06:56,910 --> 00:07:03,750
ู†ุนู…ู„ function ู…ุน ุจุนุถ ุชุจูˆุง ุนู†ุฏูŠ ู‡ู†ุง ุจู†ุงุช ูˆุฑุง ููŠ
89
00:07:03,750 --> 00:07:08,110
ุนู†ุฏูŠ code ุฃู†ุง ูƒุงุชุจู‡ ู„ function ุตุบูŠุฑุฉ ู‡ูŠ ููƒุฑุฉ ุงู„ู€
90
00:07:08,110 --> 00:07:10,910
function ุจุฏูŠ ุฃุนู…ู„ create or replace function ุทุจุนู‹ุง
91
00:07:10,910 --> 00:07:14,930
ู„ุณู‡ ู…ุง ุดุฑุญู†ุงุด ุงู„ function ุจุฏูŠ ุฃุณู…ูŠู‡ุง my function
92
00:07:14,930 --> 00:07:20,550
myfn ู‡ูŠ ู„ู‡ุง return value ู†ูˆุน ุงู„ return variable
93
00:07:20,550 --> 00:07:24,130
character to ููŠ ุนู†ุฏูŠ variable ู‡ูŠู† ุนุงู…ู„ู‡ ู…ุณู…ูŠู‡
94
00:07:24,130 --> 00:07:27,970
variable underscore its name ูˆ ุงู„ variable ู‡ุฐุง
95
00:07:27,970 --> 00:07:32,310
ู†ูˆุนู‡ variable character ุนุดุฑูŠู† ุญุฑู begin ู‡ูŠ ุจุฏุงูŠุฉ ุงู„
96
00:07:32,310 --> 00:07:36,110
code ุนู†ุฏูŠ ุจุฏูŠ ุฃุนู…ู„ select sname from table ู…ู† ุงู„
97
00:07:36,110 --> 00:07:40,310
sellers ุงู„ู„ูŠ ูƒู†ุง ุนุงู…ู„ูŠู†ู‡ ูˆ ุจุฏูŠ ุฃุฎุฒู† ุงู„ value ุจุชุงุนุฉ
98
00:07:40,310 --> 00:07:42,290
ุงู„ sname ููŠ ุงู„ variable ุงู„ู„ูŠ ุนู…ู„ุชู‡ ุงู„ุฌุฏูŠุฏ ู‡ูŠ
99
00:07:42,290 --> 00:07:46,530
select into ุชุฎุฒูŠู†ู‡ุง ููŠ ุงู„ V sname ู‡ุงูŠ ุงู„ V sname
100
00:07:46,530 --> 00:07:49,490
ู‡ุฐุง ุงู„ู„ูŠ ุฃู†ุง ุนู…ู„ุชู‡ ุงู„ุขู† ุฌุฏูŠุฏ ุงู„ variable ุงู„ู„ูŠ
101
00:07:49,490 --> 00:07:55,330
ุนู…ู„ุชู‡ ู„ู‡ declare where ุงู„ SID ู…ุญุฏุฏุชุด ู‚ูŠู…ุฉ ู„ู„ SID
102
00:07:55,330 --> 00:08:00,470
ุงูŠุด ุญุทูŠุชุŸ ุญุทูŠุช variable ุงุณู…ู‡ V underscore SID ูˆ ุงู„
103
00:08:00,470 --> 00:08:06,110
VSID ู‡ุฐุง ุฃุนุทูŠุชู‡ ุงูŠุด ุงู„ู„ูŠ ู‡ูŠ ุฅุดุงุฑุฉ ุงู„ end ุงู„ end
104
00:08:06,110 --> 00:08:09,750
percent ุฃู†ู‡ ู‡ุฐุง ุฃุทู„ุจ ูˆ ุฃู†ุช ู…ู† ุงู„ user ุฎู„ูŠ ุงู„ user
105
00:08:09,750 --> 00:08:15,750
ู‡ูˆ ูŠุฏุฎู„ ู‚ูŠู…ุชู‡ ู„ู…ุง ุฃุฎู„ุต ุจุฏูŠ ุฃุฑุฌุน ู‚ูŠู…ุฉ ู…ูŠู† ุงู„ V ุงู„
106
00:08:15,750 --> 00:08:19,170
ู‚ูŠู…ุฉ ู‡ุฐู‡ ุงู„ V underscore SNAME ุจุฏูŠ ุฃุนู…ู„ู‡ุง again
107
00:08:19,170 --> 00:08:26,970
ุตุนุจ ุงู„ code ูู‡ู…ู‡ ุงูŠุด ุจุนู…ู„ุŸ ุจุฏู‡ ุดุฑุญ ูƒู…ุงู†ุŸ ู‡ูŠุฃุฎุฏู‡
108
00:08:26,970 --> 00:08:27,830
ูˆุนู…ู„ู‡ copyุŸ
109
00:08:30,500 --> 00:08:37,500
ููŠ ูƒู…ุงู† ุงู„ end ู„ุงุฒู… ูŠูƒูˆู† ู‡ุงูŠ ุญุงุฌุฉ
110
00:08:37,500 --> 00:08:46,280
ุนู„ู‰ ุงู„ Oracle ู‡ุฃุนู…ู„ best ุถุบุท ุนู„ู‰ ุงู„ end ุฃุญุท ุงู„ู„ูŠ ู‡ูŠ
111
00:08:46,280 --> 00:08:50,320
ุชุงุนุฉ ุงู„ execution ุงูŠุด
112
00:08:50,320 --> 00:08:54,940
ุนุทุงู†ูŠุŸ enter value for VSID ู„ูŠุด ุทู„ุจ ุงู„ value ุจุชุงุนุฉ
113
00:08:54,940 --> 00:08:58,880
VSID ู„ุฃู† ุงุญู†ุง ุญุงุทูŠู† ุนู„ูŠู‡ุง &percent ู„ุฃู† ู‡ูŠ ุจุฏู‡ุง
114
00:08:58,880 --> 00:09:02,900
ุชุนูˆูŠุถ ู‡ุฐู‡ ุงู„ู‚ูŠู…ุฉ ู„ุงุฒู… ูŠุฏุฎู„ู‡ุง ุงู„ user ุฃู†ุง ูˆ ุฃู†ุง
115
00:09:02,900 --> 00:09:09,080
ุฏุฎู„ุช ู„ู‡ ู…ุซู„ุง ุงู„ู‚ูŠู…ุฉ 22 ุงูŠุด ูƒุชุจ ู„ูŠุŸ ูƒุชุจ ู„ูŠ ู‡ุงูŠ ุงู„ุณุทุฑ
116
00:09:09,080 --> 00:09:13,000
ู‡ุฐุง ุณุงุจู‚ู‹ุง ูƒุงู† where SID ุจูŠุณุงูˆูŠ &percent V
117
00:09:13,000 --> 00:09:16,140
underscore SID ู„ุฃู† ุตุงุฑ ุงูŠุด ุจูŠุณุงูˆูŠ where SID ุจุชุณุงูˆูŠ
118
00:09:16,140 --> 00:09:23,540
22 ูˆ ูƒุชุจ ู„ูŠ ุฅู† ุงู„ function ุงูŠู‡ createdุŸ ูุฌูŠู†ุง ุนู…ู„ู†ุง
119
00:09:23,540 --> 00:09:29,180
select my
120
00:09:29,180 --> 00:09:39,540
function from dual ุฃุนุทุงู†ูŠ
121
00:09:39,540 --> 00:09:43,940
ู…ูŠู†ุŸ ู‚ูŠู…ุฉ ุงู„ functionุŸ ุงู„ function ุญุณุจุช ู„ูŠ ุงู„ู‚ูŠู…ุฉ ูˆ
122
00:09:43,940 --> 00:09:47,960
ุฑุฌุนุช ู„ูŠ ุงูŠุด ุงู„ุฅุณู…ุŸ ู„ูŠุดุŸ ู„ุฃู†ู‡ ููŠ ุงู„ุฌุฏูˆู„ .. ู…ูŠู† ุงู„ ..
123
00:09:47,960 --> 00:09:53,100
ุงู„ SID ุชุจุนู‡ 22 ุฏูˆุงู„
124
00:09:53,100 --> 00:09:56,920
ู‡ุฐุง table ูˆู‡ู…ูŠ ููŠ ุงู„ุฃูˆุฑุงูƒู„ ุจุณุชุฏุนูŠ ู…ู†ู‡ ุฃูŠ function
125
00:09:56,920 --> 00:09:58,820
ุฃู†ุง ุจุนู…ู„ .. ู„ุณู‡ ู…ุง ุดุฑุญู†ุงุด ุงู„ function ู„ู…ุง ุฃุดุฑุญ ุงู„
126
00:09:58,820 --> 00:10:02,340
function ู‡ู†ุญูƒูŠุด ู„ู„ ุฏูˆุงู„ ุชู…ุงู…ุŸ ู‡ุฐุง table ูˆู‡ู…ูŠ
127
00:10:02,340 --> 00:10:04,800
ุจุณุชุฏุนูŠ ุฃู†ุง ู…ู† ุฎู„ุงู„ ุงู„ function ุฃู†ุง ููŠ ุงู„ุฌู…ู„ุฉ ู‡ุงูŠ
128
00:10:04,800 --> 00:10:07,180
select my function from dual ู†ูุฐุช ุงู„ function
129
00:10:07,180 --> 00:10:13,400
ุจุชุงุนุชูŠ ุจุณ ู‡ูŠ ูƒู„ ุงู„ู„ูŠ ุนู…ู„ุชู‡ ุชู…ุงู…ุŸ
130
00:10:13,400 --> 00:10:18,230
ู†ู†ูุฐ ุงู„ code ุชุจุน myfunction ุงู„ code ุชุจุน
131
00:10:18,230 --> 00:10:21,210
myfunction ุฑุงุญ ุญุณุจ ุฅู†ู‡ ุงู„ vsid 22 ุฒูŠ ู…ุง ุงุญู†ุง
132
00:10:21,210 --> 00:10:27,030
ุฏุฎู„ู†ุงู‡ุง ูˆุฑุฌุน ู„ุฃู† ุงู„ S name ู‡ูˆ ู…ูŠู† ู‡ูˆ Dustin ูˆุตู„ุช
133
00:10:27,030 --> 00:10:32,490
ููƒุฑุฉ ุงู„ code ูƒูŠู ู…ู…ูƒู† ูŠุดุชุบู„ ุงู„ code Substitutional
134
00:10:32,490 --> 00:10:34,870
variables ู„ูˆ ุนู†ุฏูŠ code ุฒูŠ ู‡ูŠูƒ ู‡ูŠุจุฏุฃ ุงุฌูŠ ุงุนู…ู„
135
00:10:34,870 --> 00:10:38,330
declare ุนู†ุฏูŠ two variables ูˆุงุญุฏ ุงู„ู„ูŠ ู‡ูˆ variable
136
00:10:38,330 --> 00:10:42,150
student id ูˆ variable first name ุงู„ุฃูˆู„ูŠ ุฅู† ุงู„
137
00:10:42,150 --> 00:10:45,390
student ID ุงุนุทูŠู†ุง ู‚ูŠู…ุฉ ูˆู„ูƒู† ู‡ุฐู‡ ุงู„ู‚ูŠู…ุฉ ู…ุง ุฃุนุทูŠู†ุงู‡ุง
138
00:10:45,390 --> 00:10:49,630
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
139
00:10:49,630 --> 00:10:49,990
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
140
00:10:49,990 --> 00:10:50,130
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
141
00:10:50,130 --> 00:10:50,150
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
142
00:10:50,150 --> 00:10:50,530
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
143
00:10:50,530 --> 00:10:53,330
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
144
00:10:53,330 --> 00:10:54,710
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ
145
00:10:54,710 --> 00:11:03,340
ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ู…ุจุงุดุฑุฉ ูƒู„ู… ุงุณู…ู‡ ุงู„
146
00:11:03,340 --> 00:11:08,980
first name ู…ู† ุฌุฏูˆู„ ุงุณู…ู‡ ู…ูŠู† ุงู„ student ูˆ ุจุฏูŠ ุฃุฎุฒู†
147
00:11:08,980 --> 00:11:11,800
ุงู„ู‚ูŠู…ุฉ ููŠ ู…ูŠู† ููŠ ุงู„ variable ุงุณู…ู‡ v first name
148
00:11:11,800 --> 00:11:18,100
ุงู„ู„ูŠ ู‡ูˆ ู‡ุงูŠ ู‡ุฐุง ุงู„ variable ุงู„ v first name ูˆ
149
00:11:18,100 --> 00:11:22,520
ู„ุงุญุธูˆุง ู‡ุฐุง v first name ูˆ ู‡ุฐุง first name ู‡ุฐุง ูƒู„ู…
150
00:11:22,520 --> 00:11:26,680
ู…ูˆุฌูˆุฏ ููŠ ุฌุฏูˆู„ ุงู„ students ูˆ ู‡ุฐุง ุงู„ v first name
151
00:11:26,680 --> 00:11:31,390
ู‡ุฐุง variable ุฃู†ุง ุนู…ู„ุชู‡ ู„ุณู‡ ุฌุฏูŠุฏ ุฃุฎุฏ ู‚ูŠู…ุฉ ุงู„ูƒู„ู… ูˆ
152
00:11:31,390 --> 00:11:36,370
ุฃุฎุฒู†ู‡ุง ููŠ ุงู„ู€ vfirstname ูˆ where ุงู„ student ID ู„ู‡
153
00:11:36,370 --> 00:11:40,090
ู‚ูŠู…ุฉ ุจุฏูŠ ุฃุญุฏุฏู‡ุง ููŠ ุงู„ where ุงู„ุดุฑุท ุทุจุนูŠ ุงู„ where
154
00:11:40,090 --> 00:11:43,070
ุงู„ู„ูŠ ู‡ูŠ ุงู„ vstudentID ู‡ุฐุง ู…ู† ุงู„ variable ู‡ุฐุง ุงู„
155
00:11:43,070 --> 00:11:47,470
variable ู‡ุฐุง ู‡ูŠ ุงู„ vstudentID ุงู„ู„ูŠ ุฃู†ุง ู„ุณู‡ ุจุฏูŠ
156
00:11:47,470 --> 00:11:52,060
ุฃุฎุฏู‡ ู…ู† ู…ูŠู†ุŸ ู…ู† ุงู„ user ู‡ุฎู„ ุงู„ user ูŠุฏุฎู„ู‡ูˆ ููŠ
157
00:11:52,060 --> 00:11:55,080
ุงู„ุขุฎุฑ ู‡ุนู…ู„ dbms output dot bot line ุงู„ู„ูŠ ู‡ูŠ ุฒูŠ
158
00:11:55,080 --> 00:11:59,600
print ุจุฏูŠ ุงุนู…ู„ ุทุจุงุนุฉ student name ู‡ุทุจุน ุงู„ุฌู…ู„ุฉ ู‡ุงูŠ
159
00:11:59,600 --> 00:12:03,720
ุงู„ string ู‡ุฏุง student name ูˆ ุงุญุท ู‚ูŠู…ุฉ ุงู„ variable
160
00:12:03,720 --> 00:12:11,800
ุงู„ู„ูŠ ุทู„ุน ู…ุนุงูƒ dbms
161
00:12:11,800 --> 00:12:15,920
output dot bot line function ุงู„ูุงูŠุฏุฉ ู…ู†ู‡ุง ุงู†ู‡ุง
162
00:12:15,920 --> 00:12:22,600
ุชุนู…ู„ูŠ ุงูŠุด ุชุนู…ู„ูŠ output ุนู„ู‰ ุงู„ุดุงุดุฉ ุฃุทุจุน ุนู„ู‰ ุงู„ุดุงุดุฉ
163
00:12:22,600 --> 00:12:28,580
ุนุดุงู† ุชุดุชุบู„ ู„ุงุฒู… ููŠ ุนู†ุฏูŠ environment variable ู„ุงุฒู…
164
00:12:28,580 --> 00:12:32,040
ุฃูƒูˆู† ุนุงู…ู„ู‡ ุงู„ู„ูŠ ู‡ูˆ set server output on ู„ุงุฒู… ุชูƒูˆู†
165
00:12:32,040 --> 00:12:36,340
ู‡ุฐู‡ ุงู„ุฌู…ู„ุฉ ู…ุนู…ูˆู„ุฉ ู…ู† ุฃูˆู„ ุชู†ุนู…ู„ ู…ุฑุฉ ูˆุงุญุฏุฉ ุฃู†ู‡ ุฃู†ุง
166
00:12:36,340 --> 00:12:40,980
ุจุฏูŠ ุฃุณู…ุญ ู„ู„ server ุฃู†ู‡ ูŠุทุจุน ุนู„ู‰ ุงู„ุดุงุดุฉ set server
167
00:12:40,980 --> 00:12:46,040
output on command ููŠ ุงู„ู‚ุฑุงูƒูŠู† ู‚ุจู„ ู…ุง ู†ุดุชุบู„ ุฃูŠ ุดูŠุก
168
00:12:46,040 --> 00:12:50,030
ู‡ุฐู‡ ู…ุฑุฉ ูˆุงุญุฏุฉ ุฅุฐุง ุงู†ุนู…ู„ุช ุฎู„ุงุต ู…ุงุจู„ุฒู…ุด ู†ุนู…ู„ู‡ุง ู…ุฑุฉ
169
00:12:50,030 --> 00:12:55,250
ุชุงู†ูŠุฉ ุฅู„ุง ุฅุฐุง ุฃุฌู‰ ูˆุงุญุฏ ูˆุนู…ู„ set server output off
170
00:12:55,250 --> 00:12:57,610
ูˆุทูุงู‡ุง ุชู…ุงู…
171
00:13:00,690 --> 00:13:04,530
ุงู„ุงู† ุงู„ controls ุงู„ control structure ููŠ ู„ุบุฉ ุงู„ bl
172
00:13:04,530 --> 00:13:12,170
SQL ููŠ ุนู†ุฏูŠ if then else if then ูˆ ููŠ ุนู†ุฏูŠ if then
173
00:13:12,170 --> 00:13:17,210
ูˆ else ูˆ ููŠ if then else if else if else if ู‚ุฏ ู…ุง
174
00:13:17,210 --> 00:13:20,670
ุจุฏู†ุง ููŠ case statement ููŠ for loop ููŠ while loop
175
00:13:20,670 --> 00:13:26,220
ููŠ ุงู„ exit when loops ุจู†ุดูˆู ูˆ ู†ุชุนุฑู ุนู„ูŠู‡ู… ูˆ ู†ุดูˆู
176
00:13:26,220 --> 00:13:29,480
ูƒูŠู ู†ุณุชุฎุฏู…ู‡ู… ุงุตู„ุง ุงู†ุชูˆุง ูŠุนู†ูŠ ุงู„ู„ูŠ ูุงู‡ู… ุจุฑู…ุฌุฉ ููŠ ุงูŠ
177
00:13:29,480 --> 00:13:33,020
ู„ุบุฉ ุจุฑู…ุฌุฉ ูŠุนู†ูŠ ุงู„ุฃู…ูˆุฑ ู‡ูŠ ุณู‡ู„ุฉ ู‡ู†ู…ุฑ ุนู„ูŠู‡ุง ุณุฑูŠุนุง
178
00:13:33,020 --> 00:13:38,180
ุชุฑูƒูŠุจุฉ ุงู„ if then ุจุญุท ุงู„ if ุจุนุฏู‡ุง condition ุงู„ุดุฑุท
179
00:13:38,180 --> 00:13:42,640
ุงู„ู„ูŠ ุจุฏู‡ ุงุนู…ู„ู‡ then ูˆ ุจูƒุชุจ ู…ุฌู…ูˆุนุฉ ุงู„ comments ุงู„ู„ูŠ
180
00:13:42,640 --> 00:13:47,780
ุจุฏู‡ ุงู†ูุฐู‡ุง else if ููŠ ุงู„ python ู‡ูŠ ุงู„ู„ูŠ ูƒุงู†ุช ู…ุด
181
00:13:47,780 --> 00:13:54,940
else if ูƒุงู†ุช LF LF ุฒูŠ ู‡ูŠูƒ ุงู„ุงู† ููŠ ูƒู…ุงู† end ุฒูŠุงุฏุฉ ู…ุด
182
00:13:54,940 --> 00:14:01,460
ู‡ุชู†ุณูˆู‡ุง ู‚ู„ุต if ู‚ู„ุต if condition then ู†ุญุท ุงู„
183
00:14:01,460 --> 00:14:04,920
statement ููŠ ูƒุงู† ุนู†ุฏูƒู… then ููŠ ุงู„ python ููŠ ูƒู„ู…ุฉ
184
00:14:04,920 --> 00:14:11,500
then ุจุณ if ุงู„ condition ูˆ ู†ู‚ุทูŠู† ููˆู‚ ุจุนุถ ุชู†ุฒู„ูˆุง ุณุทุฑ
185
00:14:11,500 --> 00:14:16,090
ุงู„ุขู† ุจุฏู„ ู†ู‚ุทูŠู† ููˆู‚ ุจุนุถ ููŠ ุงู„ sql ููŠ then ุชู…ุงู…
186
00:14:16,090 --> 00:14:20,450
ูŠุนู†ูŠ ุชุบูŠูŠุฑ ุจุณ ููŠ ุงู„ syntax ู†ุณู…ูŠู‡ ุงุญู†ุง ููŠ ุงู„ุจุฑู…ุฌุฉ
187
00:14:20,450 --> 00:14:23,590
syntax ุงู„ู„ูŠ ู‡ูŠ ุทุฑูŠู‚ุฉ ุงู„ูƒุชุงุจุฉ ุฃู…ุง ุงู„ูู‡ู… ูŠุนู†ูŠ ู‡ูŠ
188
00:14:23,590 --> 00:14:26,270
ู†ูุณู‡ุง ููŠ ูƒู„ ู„ุบุงุช ุงู„ุจุฑู…ุฌุฉ ุงู„ if ููŠ ู†ูุณ ุงู„ if ุงู„ for
189
00:14:26,270 --> 00:14:30,270
loop ูŠ ู†ูุณ ุงู„ for loop if condition then statements
190
00:14:30,270 --> 00:14:33,690
else if condition ุฌุฏูŠุฏ ุจูุญุตู‡ then ุจู†ูุฐ ุงู„
191
00:14:33,690 --> 00:14:37,030
statements ู…ุงููŠุด ูˆู„ุง condition ุฒุจุท ู…ุนุงู‡ ู„ูˆ ูƒู†ุช ุงู†ุง
192
00:14:37,030 --> 00:14:42,790
ุญุงุท ููŠ ุงู„ุขุฎุฑ else ุจูŠุฌูŠ ุจู†ูุฐู‡ุง ููŠ ุงู„ู†ู‡ุงูŠุฉ ูˆ and if
193
00:14:44,370 --> 00:14:52,090
semicolon ุชู†ู‡ูŠ ูƒู„ block ุงู„ code ู‡ุฐุง ุทุจ
194
00:14:52,090 --> 00:14:54,810
ุฅุฐุง ู…ุงููŠุด ุนู†ุฏูŠ ุบูŠุฑ condition ูˆุงุญุฏ ุจูƒุชุจ if
195
00:14:54,810 --> 00:14:59,210
condition then ุจูƒุชุจ ุงู„ statements ูˆ ุจุญุท end if
196
00:14:59,210 --> 00:15:02,970
ู…ุจุงุดุฑุฉ ููŠ ุนู†ุฏูŠ condition ุชุงู†ูŠ ุจุนู…ู„ else if ุงู„
197
00:15:02,970 --> 00:15:06,510
condition ุงู„ุชุงู†ูŠ ุชุงู„ุช ุจูƒุฑุฑ ู†ูุณู‡ุง ุฏูŠ ุงู„ else if ุฃูˆู„
198
00:15:06,510 --> 00:15:11,950
ูˆุงุญุฏุฉ if ูˆ ุงู„ุชูƒุฑุงุฑ ุจูƒูˆู† ู„ู…ูŠู† ุงู„ุชูƒุฑุงุฑ ู„ู„ else if ุฅุฐุง
199
00:15:11,950 --> 00:15:15,030
ููŠ ุนู†ุฏู‰ ุฅุดูŠ default ูŠุนู†ูŠ ู…ุงู†ุทุจู‚ุด ูˆู„ุง ุดุฑู‚ ุจุณ ุชุฎุฏู…
200
00:15:15,030 --> 00:15:20,710
ุงู„ู„ู‰ ู‡ู‰ else ู„ูˆุงุญุฏุฉ ูˆ ุจุชูƒูˆู† ุฏุงูŠู…ุง ูู‰ ุงู„ุขุฎุฑุฉ ูู‡ู‰
201
00:15:20,710 --> 00:15:23,930
ุงู„ู„ู‰ ูˆุงุถุญุฉ ู…ุงุจุฏู‡ุงุด ุดุฑุญ ุงูƒุชุฑ ู…ู† ู‡ูŠูƒ ู‡ู‰ ู…ุซุงู„ example
202
00:15:23,930 --> 00:15:29,320
ุนู„ูŠู‡ุง ูƒูŠู ู…ู…ูƒู† ู†ุณุชุฎุฏู…ู‡ุง declare ุจุฏูŠ ุงุนู…ู„ variable x
203
00:15:29,320 --> 00:15:33,000
ุณู…ูŠุชู‡ imp row type ูŠุนู†ูŠ ุงู†ุง ุงุฎุฏุช ู‡ุฐุง ุงู„ุณุทุฑ ุงูŠุด
204
00:15:33,000 --> 00:15:37,060
ุนู…ู„ู„ูŠู‡ุŸ ุงุฎุฏุช ูƒู„ ุงู„ columns ูƒู„ ุงู„ columns ุงู„ู„ูŠ ููŠ
205
00:15:37,060 --> 00:15:41,440
ุงู„ imp table ูˆ ุญุทูŠุชู‡ู… ููŠ ุงู„ variable ู‡ุฐุง x ุตุงุฑ ู‡ุฐุง
206
00:15:41,440 --> 00:15:45,860
ุงู„ variable ุฌูˆุง variables ูˆ ุงู„ types ุชุจุนุชู‡ู… ู†ูุณ ุงู„
207
00:15:45,860 --> 00:15:50,580
types ุจุชุงุนุฉ ุงู„ุฌุฏูˆู„ ุชุจุน ุงู„ imp ู‡ุงูŠ ุงู„ begin ูˆ ู‡ุงูŠ
208
00:15:50,580 --> 00:15:55,790
ุงู„ end ุฃูˆู„ ุดูŠ ุจุฏูŠ ุฃุนู…ู„ select star into x from
209
00:15:55,790 --> 00:15:58,490
employee where ุงู„ employee number ุจูŠุณุงูˆูŠ ู‡ุฐุง ุงู„ุฑู‚ู…
210
00:15:58,490 --> 00:16:02,210
ูŠุนู†ูŠ ู‡ุฌูŠุจ ุงู„ู…ูˆุธู ุงู„ู„ูŠ ุฑู‚ู…ู‡ ุฒูŠ ู‡ุฐุง ุงู„ุฑู‚ู… ูˆ ุฃุฎุฏ ูƒู„
211
00:16:02,210 --> 00:16:07,550
ุงู„ columns ุจุชุงุนุชู‡ ูˆ ุฃุฎุฒู†ู‡ุง ููŠ x ุญุงุฌุฉ ุฃุนู…ู„ output
212
00:16:07,550 --> 00:16:14,430
ู„ู„ e name ุฃุทุจุน ุงุณู…ู‡ ูˆ ุจุนุฏูŠู‡ุง x dot salary ุฃุทุจุน
213
00:16:14,430 --> 00:16:17,750
ุฑุงุชุจู‡ ุทุจุนุช ุงุณู…ู‡ ูˆ ุทุจุนุช ุฑุงุชุจู‡ ูƒู„ ูˆุงุญุฏุฉ ุฃูุณุทู‡ุง
214
00:16:17,750 --> 00:16:23,960
ุจุนุฏูŠู‡ุง if ุงู„ salary ุจุชุงุนุชู‡ ุฃูƒุจุฑ ู…ู† 2000 then ุฏู‡ ุฑูˆุญ
215
00:16:23,960 --> 00:16:32,180
ุฃุทุจุน is greater than ุฃู„ููŠู† ูˆ end if ุฎู„ุตุช ู„ูˆ ุฑุงุชุจู‡
216
00:16:32,180 --> 00:16:37,940
ู…ุด ุฃูƒุชุฑ ู…ู† ุฃู„ููŠู† ุงู„ุณุทุฑ ู‡ุฐุง ู…ุงู„ู‡ ู…ุด ู‡ูŠู†ุทุจุน ุงู„ุณุทุฑูŠู†
217
00:16:37,940 --> 00:16:41,240
ู‡ุฏูˆู„ ุฏุงูŠู…ุง .. ุฏุงูŠู…ุง ู‡ุทุจุนู‡ู… ู„ุฅู† ู…ุงููŠุด ุนู„ูŠู‡ู…
218
00:16:41,240 --> 00:16:45,280
condition ู‡ุฐุง ุนู„ูŠู‡ condition ูู‡ุทุจุนู‡ ุจุณ ุฅุฐุง ูƒุงู†
219
00:16:45,280 --> 00:16:48,640
ุงู„ุฑุงุชุจ ุงุชุญู‚ู‚ ุงู„ุดุฑุท ุงู„ุณู„ุฑ ุฃูƒุจุฑ ู…ู† ุฃู„ููŠู† ุฏู‡ ุญุท ูƒู…ุงู†
220
00:16:48,640 --> 00:16:54,530
ุดุฑุท ู…ุซู„ุง ุจุนู…ู„ and ุจูƒุชุจ and ูˆ ุจุญุท ูƒู…ุงู† ุดุฑุท ู…ุซู„ุง ุงุณู…ู‡
221
00:16:54,530 --> 00:16:59,170
ูŠูƒูˆู† Clark ุงูˆ ุงุณู…ู‡ ูŠูƒูˆู† Andy ุงูˆ ุงุณู…ู‡ ูƒุฐุง ุงุฐุง ุจุญุท
222
00:16:59,170 --> 00:17:03,270
ูƒู…ุงู† ุดุฑุท ุงุฐุง ุจุฏุนู… ุงู„ or ู…ุงููŠุด ู…ุดูƒู„ุฉ ุจุฑุถู‡ ู…ู…ูƒู† ูŠูƒูˆู†
223
00:17:03,270 --> 00:17:07,050
ุดุฑุท if condition or condition ุชุงู†ูŠ ู†ูุณ ุงู„
224
00:17:07,050 --> 00:17:09,570
conditions ุงู„ู„ูŠ ูƒู†ุง ู†ุงุฎุฏู‡ุง ููŠ ุงู„ where ุจู†ูุณ
225
00:17:09,570 --> 00:17:14,570
ุงู„ุฃุณู„ูˆุจ ู‡ุฐู‡ ู†ุชูŠุฌุฉ ุงู„ุทุจุงุน ุนู†ุฏูŠ ู…ุซู„ุง ุฅุฐุง ููŠ ุนู†ุฏูŠ ุฌุฏูˆู„
226
00:17:14,570 --> 00:17:18,210
ูุนู„ุง ูˆ ููŠ ุนู†ุฏูŠ ูˆุงุญุฏ ู„ู‡ ู†ูุณ ุงู„ุฑู‚ู… ู‡ุฐุง ุงุณู…ู‡ Clark ู‡ูŠ
227
00:17:18,210 --> 00:17:22,030
ุฑุงุชุจู‡ ูุฑุงุญ ุทุจุนู„ูŠ ุจู…ู†ู‡ ุฑุงุชุจ ุฃูƒุชุฑ ู…ู† 2000 ุทุจุนู„ูŠ
228
00:17:22,030 --> 00:17:31,450
ุงู„ุณุทุฑ ุงู„ุชุงู„ุช is greater than 2000 ูƒู…ุงู†
229
00:17:31,450 --> 00:17:35,330
example ููŠ
230
00:17:35,330 --> 00:17:40,730
else ู†ูุณ ููƒุฑุฉ ุงู„ example ุงู„ุณุงุจู‚ ู†ูุณ ุงู„ุดุฑุญ ุจุณ ุนู†ุฏู‰
231
00:17:40,730 --> 00:17:43,590
ุงุฐุง ูƒุงู† ุงู„ุฑุงุชุจ ุงูƒุชุฑ ู…ู† 3000 ุงู„ x dot salary ุงูƒุจุฑ
232
00:17:43,590 --> 00:17:49,090
ู…ู† 3000 then ู‡ุทุจุน ุงู†ู‡ greater than 3000 ูˆ ุงุทุจุน
233
00:17:49,090 --> 00:17:54,870
ูƒู…ุงู† ุณุทุฑ ุงู†ู‡ good ูˆ ุฑุงุชุจู‡ ููˆู‚ 3000 ู…ู†ูŠุญ else ุงุฐุง
234
00:17:54,870 --> 00:18:03,470
ู…ุงูƒุงู†ุด ููˆู‚ 3000 else ุจุฏู‰ ุงุทุจุน ุงู†ู‡ not good ุงู„ู‚ู„ุต
235
00:18:03,470 --> 00:18:12,970
ูŠุชุทุจู‚ ุฏุงุฆู…ุง ุฅุฐุง ุงู„ุดุฑุท ู„ู… ูŠุชุญู‚ู‚ ุชุจุน ุงู„ู€ 3000 ุฏุฎู„
236
00:18:12,970 --> 00:18:18,170
ุชุฑูƒูŠุจุฉ ุงู„ู‚ู„ุต if ุงู„ุดุฑุท
237
00:18:18,170 --> 00:18:24,690
ุงู„ุฃูˆู„ ุฃู† ูŠูƒูˆู† ุงู„ุฑุงุชุจ ุฃูƒุชุฑ ู…ู† 2450 ู‚ู„ุต if ุฅุฐุง ูƒุงู†
238
00:18:24,690 --> 00:18:30,750
ุจูŠุณุงูˆูŠ 2450 ู‚ู„ุต ูŠุนู†ูŠ ู„ุง ุฃูƒุจุฑ ูˆู„ุง ุจูŠุณุงูˆูŠ
239
00:18:33,410 --> 00:18:37,810
ุฃู‚ู„ ู…ู† 2450 ุจุณ ุจุฏูˆู† ู…ูƒุชุจ ุงู„ุดุฑุท ุฎู„ุงุต automatic
240
00:18:37,810 --> 00:18:40,850
ุทุงู„ู…ุง ู…ุง ุงุชุญู‚ู‚ุด ุงู„ุฃูˆู„ ูˆุงู„ุชุงู†ูŠ ู…ุนู†ุงุชู‡ ุฃู‚ู„ ู…ู† 2450
241
00:18:40,850 --> 00:18:46,050
ู‡ุทุจุน ู‡ุฐู‡ ู‡ูŠ is less than 2450 is equal to is
242
00:18:46,050 --> 00:18:49,950
greater than ุงู„ุงู† ุงูŠุด ุนู†ุฏูƒู… ุงููƒุงุฑ ููŠ ุงู„ุจุฑู…ุฌุฉ
243
00:18:49,950 --> 00:18:53,070
ุงู„ู…ูุฑูˆุถ ุงู†ุชูˆุง ุจุฑู…ุฌุชู‡ ู…ุด ุญุงุฌุฉ ุงุนู„ู…ูƒู… ุงู†ุง ุจุฑู…ุฌ ูŠุนู†ูŠ
244
00:18:53,070 --> 00:18:55,510
ุงู†ุชูˆุง ุงุฎุฏุชูˆุง ุจุฑู…ุฌุฉ ูˆุงุญุฏ ูˆุงุฎุฏุชูˆุง ุจุฑู…ุฌุฉ ุงุชู†ูŠู† ูˆู…ุฑุช
245
00:18:55,510 --> 00:18:58,750
ุนู„ูŠูƒู… ุงููƒุงุฑ ุงูŠุด ู…ู…ูƒู† ูˆุงุญุฏ ูŠุจุฑู…ุฌ ุจุณ ุงู†ุง ุงู„ู„ูŠ ุจุดุฑุญู‡
246
00:18:58,750 --> 00:19:01,710
ุงู†ู‡ ูƒูŠู ุงูƒุชุจ ุงู„ code ูˆุงู†ุชูˆุง ุจุชุทุจุฎูˆุง ุงู„ code ุจู†ูุณ
247
00:19:01,710 --> 00:19:05,350
ุงู„ุฃุณู„ูˆุจ ุงู„ู„ูŠ ุงู†ุชูˆุง ุงุฎุฏุชูˆุง ููŠ ุจุฑู…ุฌุฉ ูˆุงุญุฏ ูˆ ุจุฑู…ุฌุฉ
248
00:19:05,350 --> 00:19:09,530
ุงุชู†ูŠู† ุงู„
249
00:19:09,530 --> 00:19:13,790
case expression ู†ุณุชุฎุฏู…ู‡ุง ุงุณุชุฎุฏุงู… ู…ุดุงุจู‡ ู„ู…ูŠู† ู„ู„ if
250
00:19:13,790 --> 00:19:18,160
statement ุฃุฎุฏุชูˆุง case ููŠ ุงู„ python case switch
251
00:19:18,160 --> 00:19:25,800
ุฎุฏุชูˆู‡ุง ููŠ ุงู„ JavaScript ุทูŠุจ ููƒุฑุฉ ุงู„ case ู†ูุณ ููƒุฑุฉ
252
00:19:25,800 --> 00:19:31,460
ุงู„ if ุงู†ู‡ ุนู†ุฏูŠ condition ูˆ ุฅุฐุง ุจุชุญู‚ู‚ ุจุทุจู‚ ุงู„
253
00:19:31,460 --> 00:19:34,260
statements ุงู„ู„ูŠ ุนู†ุฏูŠ ุฃูˆ ุงู„ code ุงู„ู„ูŠ ุนู†ุฏูŠ ุจุฃุณู„ูˆุจ
254
00:19:34,260 --> 00:19:37,860
ุชุงู†ูŠ ุจุฎู„ู ุดูˆูŠุฉ ุนู† ุงู„ if ุงู„ููƒุฑุฉ ุงู† ุงุนู…ู„ case ูˆ
255
00:19:37,860 --> 00:19:41,100
condition ุดุฑุท expression ุงูˆ variable ุงู†ุง ุจูุญุต ุนู„ูŠู‡
256
00:19:41,100 --> 00:19:49,090
when ูˆ ุจุญุท ู‚ูŠู…ุฉ ุงู„ variable ู„ูˆ ุญูƒูŠู†ุง case ู…ุซู„ุง x ุฃูˆ
257
00:19:49,090 --> 00:19:54,390
salary ู…ุซู„ุง x dot salary case x dot salary ู‡ุฐู‡ ุงู„
258
00:19:54,390 --> 00:19:58,350
expression ุงู„ู„ูŠ ุนู†ุฏูŠ when ุงู„ result ูˆุงุญุฏ ุงู„ result
259
00:19:58,350 --> 00:20:04,070
ูŠุนู†ูŠ ู…ุซู„ุง ุจุชุณุงูˆูŠ 3000 then ุทุจู‚ ุงู„ statements ุงู„ู„ูŠ
260
00:20:04,070 --> 00:20:08,510
ู…ูˆุฌูˆุฏุฉ ุนู†ุฏูƒ when ุดุฑุท ุชุงู†ูŠ condition ุชุงู†ูŠ ูŠุนู†ูŠ ุฅุฐุง
261
00:20:08,510 --> 00:20:12,830
ูƒุงู† ู‡ุฐู‡ if ูˆ ู‡ุฐู‡ else if ูˆ ุงู„ู„ูŠ ุจุนุฏู‡ุง else if ูˆ ู‡ูƒุฐุง
262
00:20:12,830 --> 00:20:15,470
ู‡ุงูŠ ุงู„ result ุงู„ุฃูˆู„ู‰ ุงู„ result ุงู„ุชุงู†ู‰ ูˆ when
263
00:20:15,470 --> 00:20:19,270
result three ูˆ when result four ูˆ ู‡ูƒุฐุง ุฃุฎุฑ ุฅุดูŠ
264
00:20:19,270 --> 00:20:24,270
ุนู†ุฏูŠ else ู‡ุฐู‡ ุจุชุทุจู‚ู‡ุง ุฅุฐุง ูˆู„ุง condition ู…ู†ู‡ู… ุฒุจุท
265
00:20:24,270 --> 00:20:30,390
ู…ุนุงูŠุง ุชุชุทุจู‚ ูˆ end case ุจุฏู„ ู…ุง ูƒุงู†ุช end if ุตุงุฑุช end
266
00:20:30,390 --> 00:20:30,790
case
267
00:20:35,000 --> 00:20:41,120
ู‡ุฐู‡ ู…ุซุงู„ ุนู„ู‰ ุงุณุชุฎุฏุงู…ู‡ุง ู…ู…ูƒู†
268
00:20:41,120 --> 00:20:44,640
ุชุณุชุฎุฏู…ูˆู‡ุง ู…ุซู„ุง ููŠ ุจุฑู†ุงู…ุฌ ุชุจุนูƒู… ุชุจุน ุญุฌุฒ ุงู„ุบุฑู ู…ุซู„ุง
269
00:20:44,640 --> 00:20:47,260
ุฅุฐุง ูƒู†ุชู… ุชุฑูŠุฏูˆู† ุฃู† ุชุดูˆููˆุง ุงู„ type ุชุจุน ุงู„ุบุฑู ูˆ ุจู†ุงุก
270
00:20:47,260 --> 00:20:50,860
ุนู„ูŠู‡ ุชุญุฏุฏูˆุง ุงู„ุณุนุฑ ู…ุซู„ุง case ุงู„ุบุฑูุฉ single case
271
00:20:50,860 --> 00:20:55,540
ุงู„ุบุฑูุฉ double ู‡ูŠ case employee type ู†ูˆุน ุงู„ employee
272
00:20:55,540 --> 00:20:58,960
ุนู†ุฏูŠ ุนูุฑุถ ุงู† ููŠ ุนู†ุฏูŠ variable ุจุญุฏุฏ ู†ูˆุน ุงู„ employee
273
00:20:58,960 --> 00:21:03,460
case employee type when s then ูŠุนู†ูŠ ุฅุฐุง ูƒุงู†ุช ู‚ูŠู…ุฉ
274
00:21:03,460 --> 00:21:08,800
ุงู„ variable ู‡ุฏุง employee type s ุจุฏูŠ ุฃุทุจู‚ ู…ูŠู† ุจุฏูŠ
275
00:21:08,800 --> 00:21:14,640
ุฃุทุจู‚ ุณุทุฑ ุงู„ code ู‡ุฐุง ุฅุฐุง ูƒุงู†ุช ู‚ูŠู…ุชู‡ H ุงู„ employee
276
00:21:14,640 --> 00:21:21,320
type ู‚ูŠู…ุชู‡ H ุจุฏูŠ ุฃุทุจู‚ ุงู„ุณุทุฑ ู‡ุฐุง ุฅุฐุง C ุฅุฐุง ูˆู„ุง ูˆุงุญุฏ
277
00:21:21,320 --> 00:21:28,580
ู…ู† ู‡ุฏูˆู„ else ุจุฏูŠ ุงุนู…ู„ ุณุทุฑ ุงู„ุฑุงุจุน end case ูƒู„ ูˆุงุญุฏุฉ
278
00:21:28,580 --> 00:21:33,540
ู…ู† ู‡ุฏูˆู„ ุงูŠุด ุจุชุนู…ู„ ู‡ุฏูˆู„ functions ุงู†ุง ุนุงู…ู„ู‡ู… ู‡ุฏูˆู„
279
00:21:33,540 --> 00:21:35,780
functions ุงู†ุง ุจุฏุฃ ุงูƒูˆู† ูƒุงุชุจู‡ู… ู„ู…ุง ู†ูŠุฌูŠ ู†ุญูƒูŠ ูƒูŠู
280
00:21:35,780 --> 00:21:39,620
ู†ูƒุชุจ functions ุนุงู…ู„ ุงู†ุง function ุชุนุทูŠ award ุนู„ู‰ ุงู„
281
00:21:39,620 --> 00:21:43,500
salary ุชุนุทูŠู†ูŠ bonus award salary bonus ุชุนุทูŠ bonus
282
00:21:43,500 --> 00:21:47,400
ุนู„ู‰ ุงู„ุฑุงุชุจ ุงู„ุขู† ุงู„ุทุฑูŠู‚ุฉ ุงู„ู„ูŠ ุจุญุณุจ ููŠู‡ุง ุงู„ bonus
283
00:21:47,400 --> 00:21:53,150
ู„ู„ู…ูˆุธู ุงู„ู„ูŠ ู†ูˆุนู‡ S ู…ุด ุฒูŠ ุงู„ H ู…ุด ุฒูŠ ุงู„ C ูุจุฏูŠ ู„ูƒู„
284
00:21:53,150 --> 00:21:57,870
ูˆุงุญุฏ function ูุนู…ู„ ุฃู†ุง award salary bonus ูˆ ุจุญุท ุงู„
285
00:21:57,870 --> 00:22:02,510
employee ID ุงุฐุง ูƒุงู† ุงู„ time ุชุจู‚ู‰ ุนู‚ุตูŠ ุฅุฐุง ูƒุงู† ุงู„
286
00:22:02,510 --> 00:22:05,190
time ุชุจู‚ู‰ ุนู‚ุตูŠ ูŠุนู†ูŠ ุจูŠุดุชุบู„ ุนู†ุฏูŠ ุจุงู„ุณุงุนุฉ award
287
00:22:05,190 --> 00:22:10,150
hourly bonus ูˆ ุจุญุท ุฑู‚ู… ุงู„ู…ูˆุธู ุนุดุงู† ุงุฑูˆุญ ุงุนู…ู„ู‡
288
00:22:10,150 --> 00:22:14,070
bonus ู…ู† ุฎู„ุงู„ ุงู„ function ู‡ุฐู‡ ููŠ ุนู†ุฏูŠ function
289
00:22:14,070 --> 00:22:18,190
ุชุงู„ุชุฉ ุจุชุนุทูŠ commissioned award commissioned bonus
290
00:22:19,490 --> 00:22:22,050
ุจุฑุถู‡ ุจุนุทูŠ ุฑู‚ู… ุงู„ employee ุฅุฐุง ูˆู„ุง ูˆุงุญุฏุฉ ู…ู† ู‡ุฏูˆู„
291
00:22:22,050 --> 00:22:25,490
ุจุฏูŠ ุฃุทุจุนู„ู‡ ุณุทุฑ ุงู†ู‡ no employee type found ููŠ ู…ุดูƒู„ุฉ
292
00:22:25,490 --> 00:22:29,690
ุงู„ type ุงู„ู„ูŠ ุนู†ุฏูƒ ู…ุด S ูˆู„ุง H ูˆู„ุง C ูˆุงู†ุง ู…ุชูˆู‚ุน ููŠ
293
00:22:29,690 --> 00:22:33,790
ุงู„ database ุนู†ุฏูŠ ุจุณ ุงู„ุชู„ุช ุฃู†ูˆุงุน ู‡ุฏูˆู„ ููŠ ุจุฑู†ุงู…ุฌูŠ
294
00:22:33,790 --> 00:22:42,530
ูˆุงุถุญุฉ ุงู„ case ูˆ ุงู„ุตุนุจุฉ ู†ูุณ ููƒุฑุฉ ุงู„ F ุชุทุจูŠู‚ ู…ุจุงุดุฑ
295
00:22:42,530 --> 00:22:46,270
ู†ูุณ ููƒุฑุฉ ุงู„ F ุจุณ ุตูŠุงุบุฉ ุชุงู†ูŠุฉ ูŠุนู†ูŠ ู…ู…ูƒู† ู†ูุณ ุงู„ code
296
00:22:46,270 --> 00:22:53,950
ู†ูƒุชุจู‡ ุจุงู„ F ู†ูƒุชุจู‡ ุจุงู„ case ุงู„ู€ for loop ู‡ูŠ ุตูŠุบุฉ ุงู„ู€
297
00:22:53,950 --> 00:22:58,890
for loop ููŠ ุงู„ BLSQL for ุจู†ุญุท ุงู„ variable ุงู„ู„ูŠ ุจุฏู‡
298
00:22:58,890 --> 00:23:02,850
ูŠุนู…ู„ ุงู„ loop ุงู„ู„ูŠ ุจุชุนุชู…ุฏ ุนู„ูŠู‡ ุงู„ loop ุงู„ู„ูŠ ู‡ูˆ loop
299
00:23:02,850 --> 00:23:09,450
index in ูˆ ุจู†ุนุทูŠู‡ ุงู„ range ุงู„ู„ูŠ ุจุฏู‡ ูŠู…ุดูŠ ููŠู‡ ุงู„
300
00:23:09,450 --> 00:23:15,050
range ุจู†ูƒุชุจู‡ ุน ุตูŠุบุฉ ุฑู‚ู… ู†ู‚ุทุชูŠู† ุฑู‚ู…
301
00:23:17,050 --> 00:23:20,710
ูˆุจู†ูƒุชุจ ุจุนุฏู‡ุง ูƒู„ู…ุฉ loop ูˆ end loop ูˆู…ุง ุจูŠู† ุงู„ูƒู„ู…ุชูŠู†
302
00:23:20,710 --> 00:23:26,810
ุจู†ุญุท ุงู„ code ุงู„ู„ูŠ ุจุฏู†ุง ู†ูุฐู‡ ุฃูƒุชุฑ ู…ู† ู…ุฑุฉ ุงู„ code
303
00:23:26,810 --> 00:23:33,230
ู‡ุฏุง for i in ู…ู† ูˆุงุญุฏ ู„ู…ูŠุฉ ูŠุนู†ูŠ ู‡ุชู…ุดูŠ ู…ู† ุชุนุฏ ุงู„ I
304
00:23:33,230 --> 00:23:36,070
ุชูƒูˆู† ู‚ูŠู…ุชู‡ุง ูˆุงุญุฏ I ู‚ูŠู…ุชู‡ุง ุงุชู†ูŠู† I ู‚ูŠู…ุชู‡ุง ุชู„ุงุชุฉ
305
00:23:36,070 --> 00:23:41,390
ู„ุนู†ุฏ ู…ูŠุฉ ููŠ ูƒู„ ู…ุฑุฉ ู…ู† ู‡ุฏูˆู„ ุจุฏูŠ ุงุนู…ู„ ุงู†ุง insert into
306
00:23:41,390 --> 00:23:46,430
item values ู…ุซู„ุง 50.i ุฃูŠ ูƒูˆุฏ ุจุฏูŠู‡ ู…ู…ูƒู† ูŠูƒูˆู† ุทุจุนุง
307
00:23:46,430 --> 00:23:49,510
ุชู„ุช ุฃุณุทุฑ ุฃุฑุจุน ุฎู…ุณ ุนุดุฑุฉ ู„ูˆุจ ุฒูŠ ุงู„ู„ูŠ ุฃุฎุฏุชู‡ุง ููŠ
308
00:23:49,510 --> 00:23:56,870
ุงู„ุจุฑู…ุฌุฉ ุฃูŠ ุนุฏุฏ ู…ู† ุงู„ุฃุณุทุฑ ุจุฏูŠู‡ ุฃู†ุง ููŠ ุงู„ูƒูˆุฏ ู‡ุฐู‡
309
00:23:56,870 --> 00:24:02,220
ู…ุซุงู„ ูƒูˆุฏ ุนู„ูŠู‡ุง ุนู…ู„ุช declare ู„ variable ุงุณู…ู‡ x
310
00:24:02,220 --> 00:24:06,300
number ุนุจุงุฑุฉ ุนู† ุฑู‚ู… begin ุงู„ x ูƒุงู… ุงุนุทูŠุชู‡ุง ู‚ูŠู…ุฉ
311
00:24:06,300 --> 00:24:11,000
ู…ูŠุฉ for y ุงู„ุงู† ุงู„ index ุงู„ู„ูŠ ุจุฏู‡ ูŠู„ู ููŠ ุงู„ loop
312
00:24:11,000 --> 00:24:18,600
ุงู„ู„ูŠ ู‡ูˆ ู…ูŠู† y in ู…ู† ูˆุงุญุฏ ู„ู„ู…ูŠุฉ ููŠ ูƒู„ ู…ุฑุฉ ู„ู„ุนุดุฑุฉ
313
00:24:18,600 --> 00:24:24,580
ุขุณู loop x ุจุฏู‡ ุงุฎุฒู† ููŠู‡ุง ู‚ูŠู…ุฉ ูƒุงู…ุฉ ุงู„ x ุงู„ุณุงุจู‚ุฉ
314
00:24:24,580 --> 00:24:29,140
ุฒุงุฆุฏ ุงุถูŠู ุนู„ูŠู‡ุง ุนุดุฑุฉ ู‡ูŠ ูƒุงู†ุช ููŠ ุงู„ุฃูˆู„ ูƒุงู… 100 ู‡ุชุตูŠุฑ
315
00:24:29,140 --> 00:24:36,840
110 ูƒู… ู…ุฑุฉุŸ ุนุดุฑ ู…ุฑุงุชุŒ ุจุฏูŠ ุฃู„ู ุงู„ู„ูˆุจ ุนุดุฑ ู…ุฑุงุช ููƒู„
316
00:24:36,840 --> 00:24:38,980
ู…ุฑุฉ ู„ู…ุง ุจุฏูŠ ุฃุถูŠู ุนู„ูŠู‡ุง ุนุดุฑุฉุŒ ู…ุงุฐุง ุจุฏูŠ ุฃุนู…ู„ุŸ ุจุฏูŠ
317
00:24:38,980 --> 00:24:46,700
ุฃุทุจุน ู‚ูŠู…ุฉ ุงู„ Y ูˆ X ู‚ูŠู…ุฉ ุงู„ X ูˆ ุฃุนู…ู„ end ู„ู„ loop
318
00:24:46,700 --> 00:24:50,240
ู‡ุงูŠ ูุชุญุช ุงู„ loop ู…ู† ู‡ุงูŠุŒ ู‡ุงูŠ ุจุฏุงูŠุฉ ุงู„ loop ูƒู„ู…ุฉ
319
00:24:50,240 --> 00:24:54,960
loopุŒ ู‡ุงูŠ end loop ูˆู‡ุฏูŠ end ุจุชุงุนุฉ ู…ูŠู†ุŸ ุจุชุงุนุฉ ุงู„
320
00:24:54,960 --> 00:24:59,480
begin ูˆ Slash ุชู†ููŠุฐ ุงู„ code ุงู„ code ุนู†ุฏูŠ ู„ุงุฒู… ูŠุทุจุน
321
00:24:59,480 --> 00:25:04,240
output ุฒูŠ ู‡ุฐุง ุงู„ y ุจุชุณุงูˆูŠ ูˆุงุญุฏ ู„ุงู† ู‡ูŠ ุงู„ for y in
322
00:25:04,240 --> 00:25:10,220
ูˆุงุญุฏ ู„ุนุดุฑุฉ ูุงู„ y ู‚ูŠู…ุชู‡ุง ู‡ุชู…ุดูŠ ู…ู† ูˆุงุญุฏ ู„ุนู†ุฏ ุงู„ุนุดุฑุฉ
323
00:25:10,220 --> 00:25:16,400
ูˆ ููŠ ูƒู„ ู…ุฑุฉ ุงู„ x ูƒุงู†ุช ู‚ูŠู…ุชู‡ุง ู…ูŠุฉ ุฒุงุฏ ุนุดุฑุฉ ู…ูŠุฉ ูˆ
324
00:25:16,400 --> 00:25:23,120
ุนุดุฑูŠู† ูˆ ู…ูŠุฉ ูˆ ุชู„ุงุชูŠู† ู„ุนู†ุฏ ู…ุง ู†ูˆุตู„ ุนุดุฑ ู…ุฑุงุช ููŠ ุงุดูŠ
325
00:25:23,120 --> 00:25:25,060
ุจุฏู‡ ุดุฑุญ ุงูƒุชุฑ ู…ู† ู‡ูŠูƒ ููŠ ุงู„ for loop
326
00:25:28,920 --> 00:25:31,580
ู†ูุณ ุงู„ for loop ููŠ ูƒู„ู…ุฉ ุตุบูŠุฑุฉ ู„ูˆ ุถูู†ุงู‡ุง ุนู„ูŠู‡ุง
327
00:25:31,580 --> 00:25:34,040
ุจู†ุฎู„ูŠ ุงู„ for loop ุชู…ุดูŠ ุจุงู„ุนูƒุณ ุงู„ู„ูŠ ู‡ูŠ ูƒู„ู…ุฉ reverse
328
00:25:34,040 --> 00:25:38,680
ุจุณ ุดุงูŠููŠู† ู‡ูŠ ูƒู„ู…ุฉ reverse ุนู„ู‰ ู†ูุณ ุงู„ code ุงู„ู„ูŠ ุฃู†ุง
329
00:25:38,680 --> 00:25:45,320
ุนุงู…ู„ู‡ for y in reverse ูˆุงุญุฏ ู„ุนุดุฑุฉ ู‡ุชู…ุดูŠ ุงู„ y ู…ุด ู…ู†
330
00:25:45,320 --> 00:25:52,340
ูˆุงุญุฏ ู„ุนุดุฑุฉ ู…ู† ุนุดุฑุฉ ู„ูˆุงุญุฏ ู‡ุชู…ุดูŠ
331
00:25:52,340 --> 00:25:56,790
ุงู„ index ุชุจุน ุงู„ y ู‡ูŠู…ุดูŠ ุจุงู„ุนูƒุณ ู…ู† ุนุดุฑ ู„ูˆุงุญุฏ ูุงู„ Y
332
00:25:56,790 --> 00:26:01,450
ู‡ุชุฎุชู„ู ู…ุนุงูŠุง ู…ู† 10 ู„ 1 ุจุฏู„ ู…ุง ูƒุงู†ุช ู…ู† 1 ู„ 10 ู…ุด
333
00:26:01,450 --> 00:26:04,690
ู‡ุชุฃุซุฑ ู„ุฃู† ุงู„ code ุงู„ู„ูŠ ุฃู†ุง ูƒุงุชุจู‡ ุนู„ู‰ ุงู„ X ู…ุงู„ู‡ูˆุด
334
00:26:04,690 --> 00:26:07,030
ุนู„ุงู‚ุฉ ูƒุชูŠุฑ ููŠ ุงู„ Y ุจุณ ู„ูˆ ุฃู†ุง ุฅู„ู‡ ุนู„ุงู‚ุฉ ู…ุซู„ุง ู„ูˆ
335
00:26:07,030 --> 00:26:12,730
ูƒุงู†ุช ู‡ุฐู‡ X ุจุชุณุงูˆูŠ X ุถุฑุจ Y ู‡ุชุฃุซุฑ ูƒู…ุงู† ุงู„ X ุงู„ููƒุฑุฉ
336
00:26:12,730 --> 00:26:16,830
ุงู† ุฃู†ุง ู…ู…ูƒู† ููŠ ุงู„ loop ุงู„ index ูŠู…ุดูŠ ุชุตุงุนุฏ ูˆูŠู…ุดูŠ
337
00:26:16,830 --> 00:26:19,770
ุชู†ุงุฒู„ ุญุณุจ ุงูŠุด ุญุงุฌุชูŠ ุงูŠุด ุงู„ู„ูŠ ุงู†ุง ุจุฏูŠู‡
338
00:26:27,260 --> 00:26:28,100
ุงู„ู€ while loop
339
00:26:33,810 --> 00:26:37,370
ุงู„ four loop ุจุชููŠุฏู†ูŠ ููŠ ุงู„ .. ููŠ ุงู„ oracle ู„ู…ุง ุฃู†ุง
340
00:26:37,370 --> 00:26:41,030
ุจูƒูˆู† ุจุฏูŠ ุฃู…ุดูŠ ููŠ ุงู„ loop ุนุฏุฏ ู…ุฑุงุช ุดุจู‡ ู…ุนุฑูˆู ูŠุนู†ูŠ
341
00:26:41,030 --> 00:26:45,770
ุฃู†ุง ุนุงุฑูู‡ ู…ู† ูˆุงุญุฏ ู„ุนุดุฑุฉ ู…ู† ูˆุงุญุฏ ู„ู…ูŠุฉ ููŠ ุชุฑุชูŠุจ ู…ุนูŠู†
342
00:26:45,770 --> 00:26:49,150
ุฃู†ุง ู…ุงุดูŠ ุนู„ูŠู‡ ุฃุฑู‚ุงู… ู…ุนูŠู†ุฉ ุดุจู‡ ูˆุงุถุญุฉ ุจุงู„ู†ุณุจุงู„ูŠ ู„ูƒู†
343
00:26:49,150 --> 00:26:52,350
ุฃุญูŠุงู† ุงู„ condition ุจูƒูˆู† ุจุฏูŠ ุฃู†ุง ุฃุนู…ู„ processing
344
00:26:52,350 --> 00:26:56,330
ู„ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ rows ููŠ table ู…ุด ุนุงุฑู ูƒุงู… ุนุฏุฏู‡ู… ุจู†ุงุก
345
00:26:56,330 --> 00:26:58,630
ุนู„ู‰ ุดุฑุท ู…ุนูŠู† ู…ุซู„ุง ุจุฏูŠ ูƒู„ ุงู„ุทู„ุงุจ ุงู„ู„ูŠ ู†ุงุฌุญูŠู† ููŠ
346
00:26:58,630 --> 00:27:01,660
ุงู„ู…ุณุงู‚ูู‡ูŠ ูƒู„ู…ุฉ ุงู„ู†ุงุฌุญูŠู† ููŠ ุงู„ู…ุตุงู‚ ูŠุนู†ูŠ ุนู„ุงู…ุชู‡ู…
347
00:27:01,660 --> 00:27:05,540
ุฃูƒุชุฑ ู…ู† ุณุชูŠู† ุจุณ ู‡ู… ูƒุงู… ูˆุงุญุฏ ุฃู†ุง ู…ุด ุนุงุฑู ุงุจุชุฏุง ุฃู†ุง
348
00:27:05,540 --> 00:27:09,560
ู…ุงุจุฏูŠ ูƒู†ุชุด ุฃู† ุฃู…ุดูŠ ุนู„ูŠู‡ ููŠ ุงู„ loop ู…ุงุจุฏูŠุด ุนุฏุฏ ู…ุนูŠู†
349
00:27:09,560 --> 00:27:13,080
ุฃู†ู‡ ู…ู† ูˆุงุญุฏ ู„ุนุดุฑุฉ ู…ู† ูˆุงุญุฏ ู„ู…ูŠุฉ ูุงู„ู„ูŠ ุจูŠููŠุฏู†ูŠ ููŠ
350
00:27:13,080 --> 00:27:16,260
ู‡ุฐู‡ ุงู„ุญุงู„ุฉ ุงู„ while loop ู…ุด ุงู„ for loop ู„ู…ุง ุจูƒูˆู†ุด
351
00:27:16,260 --> 00:27:18,900
ุนุงุฑู ุงู„ุนุฏุฏ ุงู„ู…ุฑุงุช ุงู„ู„ูŠ ุจุฏูŠ ุฃู…ุดูŠ ููŠู‡ ููŠ ุงู„ loop
352
00:27:18,900 --> 00:27:22,240
ูˆูƒูˆู† ููŠ ุนู†ุฏูŠ ุดุฑุท ุฒูŠ ุงู„ู…ุซุงู„ ุงู„ู„ูŠ ุฃู†ุง ุญูƒูŠุชู‡ ุงู„ู„ูŠ ู‡ูˆ
353
00:27:22,240 --> 00:27:25,720
ู…ุซู„ุง ุทู„ุงุจ ุงู„ู„ูŠ ู†ุงุฌุญูŠู† ูุจุณุชุฎุฏู… ุงู„ู„ูŠ ู‡ูŠ ุงู„ while
354
00:27:25,720 --> 00:27:30,330
loop ููƒุฑุช ุฃู†ูŠ ุจุนู…ู„ begin ุจุญุท while ุจุญุท ุจุนุฏ ุงู„ while
355
00:27:30,330 --> 00:27:35,370
ุฅูŠุด condition ุฅุฐุง ุงุชุญู‚ู‚ ุจู†ูุฐ ุงู„ loop ู…ุงุงุชุญู‚ู‚ุด ุงู„
356
00:27:35,370 --> 00:27:39,890
condition ุจุทู„ุน ุจุฑุง ุงู„ loop ุงู„ condition ุงู„ู„ูŠ ุนู†ุฏูŠ
357
00:27:39,890 --> 00:27:44,230
ููŠ ุงู„ู…ุซุงู„ ููŠ ุงู„ example x ุฃู‚ู„ ู…ู† ุฃูˆ ุจุชุณุงูˆูŠ ุฃู„ู ูˆ
358
00:27:44,230 --> 00:27:48,630
ู„ุงุญุธูˆุง ูƒู„ู…ุฉ loop ูˆ end loop ุฒูŠ ู…ูŠู† ุฒูŠ ุงู„ four ู‡ู†ุงูƒ
359
00:27:48,630 --> 00:27:53,490
ุนู…ู„ู†ุง four ูˆุงุณู… variable in ููŠ range ู…ุนูŠู† loop end
360
00:27:53,490 --> 00:27:57,610
loop ู‡ุงูŠ ุงู„ loop ูˆ end loop ุจุณ ุจุฏู„ ุงู„ four while ูˆ
361
00:27:57,610 --> 00:28:02,060
condition ุทุจ ูƒูŠู ุฃุฌุฏ ู‚ูŠู…ุฉ ุงู„ conditionุŸ ู†ุจุฏุฃ ููŠ
362
00:28:02,060 --> 00:28:08,100
ุงู„ู…ุซุงู„ ู…ู† ุฃูˆู„ ูˆ declare ุงู„ X ุนุจุงุฑุฉ ุนู† number begin
363
00:28:08,100 --> 00:28:12,020
ุงู„ X ูƒุงู… ุฎุฒู†ู†ุง ููŠู‡ุŸ 100 ู„ุฃู† ู„ู…ุง ุฏุฎู„ู†ุง ุนู„ู‰ ุงู„ loop
364
00:28:12,020 --> 00:28:17,180
Y ุงู„ X ุฃู‚ู„ ู…ู† ุฃูˆ ุจุชุณุงูˆูŠ ุฃู„ู true ูˆู„ุง falseุŸ true
365
00:28:17,180 --> 00:28:23,240
ุทุจ ู„ูˆ ุจุฏูŠู†ุง ู…ู† ุงู„ุฃุตู„ ูˆ ุงู„ X ู‚ูŠู…ุชู‡ุง 2000 ูƒู… ู…ุฑุฉ
366
00:28:23,240 --> 00:28:28,120
ู‡ุชุชู†ูุฐ ุงู„ loopุŸ ูˆู„ุง ู…ุฑุฉ ุงู„ loop ู…ุด ู‡ุชู†ูุฐ ูˆู„ุง ู…ุฑุฉ ููŠ
367
00:28:28,120 --> 00:28:33,180
ุงู„ for loop ุฏุงุฆู…ุง ุชุชู†ูุฐ ุงู„ loop ููŠ ุงู„ for loop
368
00:28:33,180 --> 00:28:37,100
ุฏุงุฆู…ุง ุงู„ loop ุชุชู†ูุฐ ูŠุนู†ูŠ ุงู†ุง ุจุนู…ู„ for ู…ุซู„ุง y ุงูˆ i
369
00:28:37,100 --> 00:28:41,320
in ูƒุฐุง ูุงู†ุง ุถุงู…ู† ุงู†ู‡ ููŠ ุงุดูŠ ุจูŠุชู†ูุฐ ุนุฏุฏ ู…ุนูŠู† ู…ู†
370
00:28:41,320 --> 00:28:44,680
ุงู„ู…ุฑุงุช ููŠ ุงู„ y ุงู„ loop ู…ู…ูƒู† ู…ุงูŠุชู†ูุฐุด ู†ู‡ุงุฆูŠ ู…ู…ูƒู†
371
00:28:44,680 --> 00:28:50,880
ูุงู„ุงู† ุจุฏุฃู†ุง ุจู‚ูŠู…ุฉ x ุจุชุณุงูˆูŠ 100 ูˆุฏุฎู„ู†ุง ุนู„ู‰ ุงู„ loop
372
00:28:50,880 --> 00:28:54,660
ูˆุนู…ู„ู†ุง x ุจุชุณุงูˆูŠ x ุฒุงุฆุฏ ุนุดุฑุฉ ู‡ุชุธู„ู‡ุง x ุฒูŠ ุนุดุฑุฉ ู„ุนู†ุฏ
373
00:28:54,660 --> 00:29:00,840
ู…ุง ุชูˆุตู„ ุฃูƒุชุฑ ู…ู† ุงู„ุฃู„ู ูŠุนู†ูŠ ู‡ุชุตูŠุฑ ุฃู„ู ูˆ ุนุดุฑุฉ ู„ู…ุง
374
00:29:00,840 --> 00:29:05,200
ู‡ุชุตูŠุฑ ุฃู„ู ูˆ ุนุดุฑุฉ ู‡ู†ุทู„ุน ู…ู† ุงู„ loop ููŠ ูƒู„ ู…ุฑุฉ ุจุฏู†ุง
375
00:29:05,200 --> 00:29:09,460
ู†ุทุจุน ู‚ูŠู…ุฉ ุงู„ x ู„ุฃ ู…ุด ููŠ ูƒู„ ู…ุฑุฉ ุงู„ุทุจุงุน ูˆูŠู† ู…ูˆุฌูˆุฏ
376
00:29:09,460 --> 00:29:14,420
ุนู†ุฏู‰ ุจุนุฏ ุงู„ loop ูุนุดุงู† ู‡ูŠูƒ ุทุจุน ู…ุฑุฉ ูˆุงุญุฏุฉ ุฃุด ุงู„ู ูˆ
377
00:29:14,420 --> 00:29:18,360
ุนุดุฑุฉ ู„ูˆ ุงู„ุทุจุงุน ู‡ูŠ ุฌูˆุง ุงู„ loop ู‡ูŠุธู„ูˆุง ูŠุทุจุน ู„ุนู†ุฏ ู…ูŠู†
378
00:29:20,010 --> 00:29:24,250
ู„ุนู†ุฏูŠ ุงู„ 1000 ุจุณ ูˆุตู„
379
00:29:24,250 --> 00:29:29,690
ููƒุฑุฉ ู„ูˆ ู‡ูŠ ุฌูˆุง ุงู„ loop ู‡ู†ุทุจุน ุจุณ ู„ุนู†ุฏูŠ ุงู„ 1000 ู„ุฃู†
380
00:29:29,690 --> 00:29:32,470
ุฃุฎุฑ ู…ุฑุฉ ู‡ู†ุฏุฎู„ ุนู„ู‰ ุงู„ loop ู‡ูŠูƒูˆู† ุงู„ุดุฑุท ู…ุชุญู‚ู‚ ุงู„ู„ูŠ
381
00:29:32,470 --> 00:29:36,930
ู‡ูˆ 1000 ุจุนุฏ ู‡ูŠูƒ 1010 ู‡ู†ุณูŠุฑ ุจุฑุง ุงู„ loop ู„ุฃู† ุณุทุฑ
382
00:29:36,930 --> 00:29:40,290
ุงู„ุทุจุงุนุฉ ุจุฑุง ุงู„ loop ูุทุจุน ู…ู† ู…ุนุงูŠุง ุงู„ู„ูŠ ู‡ูˆ ุงูŠุด 1010
383
00:29:40,290 --> 00:29:46,690
ุงู„
384
00:29:46,690 --> 00:29:54,350
exit when ุดุจูŠู‡ุฉ ุจููƒุฑุฉ ุงู„ while loop ุจุงู„ุถุจุท ุงู†
385
00:29:54,350 --> 00:29:57,690
ุงู„ููƒุฑุฉ ุงู† ุงุญู†ุง ู†ุญุฏุฏ ู…ุชู‰ ุจุฏู†ุง ู†ุทู„ุน ู…ุชู‰ ุจุฏู†ุง ู†ุนู…ู„
386
00:29:57,690 --> 00:30:04,990
exit ูุงู†ุง ุญุงุฌุฉ ุงูƒุชุจ loop ุชุจุฏุฃ ุจูƒู„ู…ุฉ loop loop ุชุจุฏุฃ
387
00:30:04,990 --> 00:30:09,690
ุงู„ loop ู…ุนุงูŠุง ูˆ ุจุญุท ุงู„ุดุฑุท ุจุนุฏู‡ุง ููŠ ุงู„ while ูƒู†ุง
388
00:30:09,690 --> 00:30:12,630
ุญุงุทูŠู† while ูˆ ุงู„ condition ุจุนุฏูŠู† loop ุตุญุŸ ุงู„ุขู† ู„ุฃ
389
00:30:12,630 --> 00:30:17,590
loop ูˆ ุจุญูƒูŠู„ู‡ exit when ู‡ุงูŠ ุดุฑุท ุงู„ exit ู‡ุฐุง ุงู„ุดุฑุท
390
00:30:17,590 --> 00:30:21,250
ุงู„ู„ูŠ ุจูŠุฎู„ูŠู†ุง ู†ุทู„ุน ู…ู† ุงู„ loop ูˆ ู„ุนู†ุฏ ุงู„ end loop ู„ูˆ
391
00:30:21,250 --> 00:30:24,970
ุงุชุทู„ุนู†ุง ุนู„ู‰ ุงู„ code ู‡ูŠู†ูุฐ ู†ูุณ ุงู„ุดุบู„ ุงู„ู„ูŠ ุงุดุชุบู„ุชู‡
392
00:30:24,970 --> 00:30:28,690
ุจุชุงุนุฉ ุงู„ while loop ุจู†ูุณ ุงู„ุทุฑูŠู‚ุฉ ุจุณ ุจุตูŠุงุบุฉ ุชุงู†ูŠุฉ
393
00:30:28,690 --> 00:30:31,790
ุฃู†ุง ุจู†ุตุญูƒู… ุงุชุฑูƒุฒูˆุง ุนู„ู‰ ุงู„ for loop ูˆ ุงู„ while loop
394
00:30:31,790 --> 00:30:36,110
ุณูŠุจูˆูƒู… ู…ู† ุงู„ .. ููŠ ุฏูƒุงุชุฑุฉ ุญุฐููˆู„ูƒู…ุŸ ุญุฐูุชู„ูƒู… ู‡ุงูŠ ุงู†ุง
395
00:30:36,110 --> 00:30:43,770
ู…ุงุดูŠุŸ ุญุฐูุชู„ูƒู… ู‡ุงูŠ ุจู„ุงู‡ุง ุชู…ุงู…ุŸ ู…ุง ู‡ูŠ ู‡ุงุฏูŠ ุดุฑุญ ุนู„ู‰
396
00:30:43,770 --> 00:30:47,810
.. ุนู„ู‰ ุงู„ .. ุดูˆ ุงุณู…ู‡ุŸ ุนู„ูŠู‡ุง loop exit ูˆูŠู†ุŸ ู…ู…ูƒู†
397
00:30:47,810 --> 00:30:55,350
ุชุจู‚ู‰ white loop ู†ุนู… while true while true ู‡ุชุธู„ู‡ุง
398
00:30:55,350 --> 00:31:00,430
ุดุบุงู„ุฉ ุนู„ู‰ ุทูˆู„ ู„ุฃ
399
00:31:00,430 --> 00:31:05,330
ู„ุฃ ู„ุฃ ู‡ุฐูŠูƒ ุงู„ exit when ู„ุญุงู„ ูˆ ุงู„ while ู„ุญุงู„ ุงู„
400
00:31:05,330 --> 00:31:11,010
while ู„ุญุงู„ ูˆ ุงู„ exit ู„ุญุงู„ while
401
00:31:11,010 --> 00:31:14,430
ูˆ ุฌูˆุงู‡ุง if ุนุงุฏูŠ ูุด ู…ุดูƒู„ุฉ ูˆ for loop ุฌูˆุงู‡ุง for loop
402
00:31:14,430 --> 00:31:18,030
ูˆ ุฌูˆุงู‡ุง ูƒู…ุงู† while ูˆ ุฌูˆุงู‡ุง if ูุด ู…ุดูƒู„ุฉ
403
00:31:20,610 --> 00:31:26,010
ุงู„ู€ procedures ูˆ ุงู„ functions ู…ู…ูƒู† ุงุญู†ุง ููŠ ุงู„ BL ูˆ
404
00:31:26,010 --> 00:31:29,830
SQL ุจุนุฏ ู…ุง ุนุฑูู†ุง ูƒูŠู ู†ุนู…ู„ conditions ุจุงู„ F ูˆ ุจุงู„ K
405
00:31:29,830 --> 00:31:34,370
ูˆ ูƒูŠู ู†ุนู…ู„ loops ุจุงู„ Y ูˆ ุจุงู„ 4 ูˆ ูƒูŠู ู†ุนู…ู„ ุฃุตู„ุง
406
00:31:34,370 --> 00:31:38,290
blocks ู…ู† ุงู„ code ุจุงู„ begin ูˆ ุงู„ end ุงู„ุขู† ุงู„ codes
407
00:31:38,290 --> 00:31:41,170
ู‡ุงูŠ ุจุฏู†ุง ู†ุฌู…ุนู‡ุง ูˆ ู†ุนู…ู„ ู…ู†ู‡ุง ุงูŠุด ู…ููŠุฏ ู…ู† ุฎู„ุงู„ ุงู„
408
00:31:41,170 --> 00:31:44,330
functions ูˆ ุงู„ procedures ุงูŠุด ุงู„ูุฑู‚ ุจูŠู† ุงู„
409
00:31:44,330 --> 00:31:49,870
function ูˆ ุงู„ procedureุŸ ุญุฏ ุจุนุฑูุŸ ู‡ูŠ ูุฑู‚ ุตุบูŠุฑ ุจูŠู†ู‡ู…
410
00:31:49,870 --> 00:31:54,890
ุงู„ุงุชู†ูŠู† ู†ูุณ ุงู„ุงุดูŠ ุจุณ ูุฑู‚ ุตุบูŠุฑ ุจูŠู†ู‡ู… ุงู„ function
411
00:31:54,890 --> 00:31:59,090
ุจุชุฑุฌุน ู‚ูŠู…ุฉ ุงู„ procedure ุจุชุฑุฌุนุด ู‚ูŠู…ุฉ ุทูŠุจ ู…ุงุดูŠ ู…ู†
412
00:31:59,090 --> 00:32:07,150
ุฃูˆู„ ุนุฑูุฉ ูˆู„ุง ู…ู† ุงู„ slideุŸ ุงู„ function ู„ุงุฒู… ุชุฑุฌุนู„ูŠ
413
00:32:07,150 --> 00:32:11,770
ู‚ูŠู…ุฉ ู„ุงุฒู… ูŠูƒูˆู† ููŠ return ุงู„ procedure ุจุชุดุชุบู„ ุดุบู„ ูˆ
414
00:32:11,770 --> 00:32:14,770
ู…ุด ุจุถุฑูˆุฑุฉ ุชุฑุฌุน ู‚ูŠู…ุฉ ุจุณ ุจุชุนู…ู„ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ุฅุฌุฑุงุกุงุช ูˆ
415
00:32:14,770 --> 00:32:16,330
ุฎู„ุงุต ู…ุงููŠุด return
416
00:32:19,830 --> 00:32:24,670
ุทูŠุจ ุงู„ function ู„ุงุฒู… ูŠูƒูˆู† ููŠู‡ุง ูƒู„ู…ุฉ return keyword
417
00:32:24,670 --> 00:32:26,890
ุจู…ุง ุฃู†ู‡ ุจุฏู‡ุง ุชุนู…ู„ return ู„ุงุฒู… ูŠูƒูˆู† ููŠู‡ุง return
418
00:32:26,890 --> 00:32:32,310
keyword ุงู„ procedure ู…ุด ุจุงู„ุถุฑูˆุฑุฉ ุงู„ุงุชู†ูŠู† ู…ู…ูƒู†
419
00:32:32,310 --> 00:32:38,290
ูŠุงุฎุฏูˆุง parameters ุงูŠุด ู‡ู… ุงู„ parameters ุงู„
420
00:32:38,290 --> 00:32:41,770
variables ุจู†ุนุทูŠู‡ู… ุงู„ function ุจู†ุนุทูŠู‡ู… ููŠ ุงู„ุจุฏุงูŠุฉ
421
00:32:41,770 --> 00:32:44,390
ุงู„ function ู„ู…ุง ุจุญุท ุงุณู… ุงู„ function ุจูŠู† ู‚ูˆุณูŠู†
422
00:32:44,390 --> 00:32:47,510
ุจุนุทูŠู‡ุง variables ู‡ุฏูˆู„ variables ู‡ู… ุงู„ parameters
423
00:32:47,510 --> 00:32:51,660
ู…ู…ูƒู† ู…ุง ูŠูƒูˆู†ุด ู„ู‡ุง parameters ู…ู…ูƒู† ุชูƒูˆู† ุจุฏูˆู†
424
00:32:51,660 --> 00:32:55,700
parameters
425
00:32:55,700 --> 00:32:59,920
function ู„ู…ุง ุชุนู…ู„ return ู„ุงุฒู… ุงู„ return ูŠูƒูˆู† ุฏุงุฆู…ุงู‹
426
00:32:59,920 --> 00:33:05,740
single value ู…ุด ู…ู…ูƒู† ุชุฑุฌุน two values ู…ุง ููŠุด return
427
00:33:05,740 --> 00:33:10,760
ู„ two values ุฃู† ุฃุฑุฌุน ุฑู‚ู… ูˆุงุณู… ู…ุซู„ุงู‹ ุฑู‚ู… ุงู„ู…ูˆุธู
428
00:33:10,760 --> 00:33:15,760
ูˆุงุณู…ู‡ ูŠุง ุจุชุฑุฌุน ุฑู‚ู…ู‡ ูŠุง ุจู†ุฑุฌุน ุงุณู…ู‡
429
00:33:18,940 --> 00:33:21,480
ูƒูŠู ุจู†ุนู…ู„ ุงู„ procedure ู…ู† ุฎู„ุงู„ ุงู„ command create
430
00:33:21,480 --> 00:33:28,020
procedure ูˆุทุงู„ู…ุง ุงุณุชุฎุฏู…ู†ุง create ูƒูŠู ุจู†ุญุฐูู‡ุŸ
431
00:33:28,020 --> 00:33:30,680
ุฃูŠ ุดูŠุก ูŠุชุนู„ู…ู†ุง ุฅุญู†ุง ููŠ ุงู„ database ุฃูŠ ุดูŠุก ุจู†ุนู…ู„ู‡
432
00:33:30,680 --> 00:33:35,080
create ูƒูŠู ุจู†ุญุฐูู‡ุŸ drop ุฒูŠ ู…ุง ููŠ ุนู†ุฏ create
433
00:33:35,080 --> 00:33:39,200
procedure ููŠ drop procedure ูˆููŠ create function ูˆ
434
00:33:39,200 --> 00:33:44,860
drop function create procedure ุตูŠุบุฉ ุนูŠุฏู‡ุง ุจูƒุชุจ
435
00:33:44,860 --> 00:33:48,360
create procedure ูˆุงุณู… ุงู„ procedure ุงู„ู„ูŠ ุจุฏู‡ ูŠุนู…ู„ู‡
436
00:33:49,880 --> 00:33:53,420
ุฃูˆ ู…ู…ูƒู† ุงุณุชุฎุฏู… create or replace procedure ุงูŠุด
437
00:33:53,420 --> 00:33:55,620
ุจุชุนู…ู„ create or replace ุฃุฎุฐู†ุงู‡ุง ููŠ ุงู„ view ุฒูŠ ู…ุง
438
00:33:55,620 --> 00:34:03,740
ุชุฐูƒุฑูŠู† ุทุจ ูˆุงุญุฏุฉ ุจุณ ุชุฑูุน ูŠุฏู‡ุง ุนุดุงู† ุฃุณู…ุน ูˆุงุญุฏุฉ ุดูŠุฑูŠู†
439
00:34:03,740 --> 00:34:08,100
ุฅุฐุง ูƒุงู†ุช ู…ูˆุฌูˆุฏุฉ ุจุนุฏู„ ุนู„ูŠู‡ุง ุชู…ุงู… create ุจูŠุฑูˆุญ
440
00:34:08,100 --> 00:34:12,460
ุจูŠุนู…ู„ู‡ุง creation ู„ูƒู† ุฅุฐุง ู…ูˆุฌูˆุฏุฉ ู‡ูŠุนุทูŠู†ูŠ error ุฅุฐุง
441
00:34:12,460 --> 00:34:15,700
ู†ูุณ ุงู„ุงุณู… ู…ูˆุฌูˆุฏ ุณูŠุนุทูŠู†ูŠ ุงู„ .. ู„ุฃู† ุงุณุชุฎุฏู…ุช create
442
00:34:15,700 --> 00:34:19,100
or replace ุฅุฐุง ู…ุด ู…ูˆุฌูˆุฏุฉ ุจูŠุนู…ู„ู‡ุง create ูˆุฅุฐุง
443
00:34:19,100 --> 00:34:22,900
ู…ูˆุฌูˆุฏุฉ ุจูŠุนุฏู„ ุนู„ูŠู‡ุง ูˆุจูŠุนู…ู„ู‡ุง replace ุงู„ procedure
444
00:34:22,900 --> 00:34:25,480
ุฃู†ูŠ ุจุชุนู…ู„ ุฃู†ุง procedure ู…ุด function ู„ูˆ ุญุทูŠุช
445
00:34:25,480 --> 00:34:28,580
function ู‡ุนู…ู„ function ุจุฏู„ ุงู„ procedure procedure
446
00:34:28,580 --> 00:34:32,400
name ุจูุชุญ ู‚ุณู… ุจุญุท parameter list ู…ู…ูƒู† ูŠูƒูˆู† ููŠู‡ุง
447
00:34:32,400 --> 00:34:36,460
parameter ุงุชู†ูŠู† ุชู„ุงุชุฉ ุฃุฑุจุนุฉ ุฎู…ุณุฉ ุฃูˆ ุฅุฐุง ู…ุง ุจุฏูŠุด
448
00:34:36,460 --> 00:34:42,150
ู…ุง ุจุญุทุด ุงู„ู‚ุณู… ู…ู† ุฃุตู„ู‡ is ุจุจุฏุฃ ุฃุนุฑู ููŠ ุงู„ variables
449
00:34:42,150 --> 00:34:45,050
ุงู„ู„ูŠ ุฌูˆุง ุงู„ procedure ุฃูˆ ุงู„ function ุงู„ู„ูŠ ู‡ูˆ ุงู„
450
00:34:45,050 --> 00:34:48,470
declarations ุจุณ ุจุฏูˆู† ู…ูƒุชุจ ูƒู„ู…ุฉ declare declare
451
00:34:48,470 --> 00:34:50,930
ู‡ุชู„ุงู‚ูŠูƒ ุจุณ ุชุณุชุฎุฏู…ู‡ุง ููŠ ุงู„ block ููŠ ุงู„ function ูˆ
452
00:34:50,930 --> 00:34:54,730
ููŠ ุงู„ procedure ู…ุง ุจุณุชุฎุฏู…ุด ูƒู„ู…ุฉ declare ุจุณ ูƒู„ู…ุฉ is
453
00:34:54,730 --> 00:34:59,910
ูˆุจุจุฏุฃ ุงู„ declaration ูˆ begin ูˆ end ูˆุจูŠู† ุงู„ begin
454
00:34:59,910 --> 00:35:02,330
ูˆุงู„ end ุจุญุท ุงู„ูƒูˆุฏ ุงู„ู„ูŠ ุจุฏูŠู‡ ูˆุฅุฐุง ููŠ exception
455
00:35:02,330 --> 00:35:09,410
ุจุญุท exception ูˆุจุนู…ู„ู‡ ุงู„ูƒูˆุฏ ุชุจุน ุงู„ exception ุทูŠุจ ู„ูˆ
456
00:35:09,410 --> 00:35:12,310
ูƒุงู†ุช ู‡ุฐู‡ ุจุฏุงูŠุฉ ุงู„ procedure function ุจุณ ุงู„ุดูŠุก ุงู„ู„ูŠ
457
00:35:12,310 --> 00:35:17,610
ู‡ูŠุฒูŠุฏ ุนู†ุฏูŠ ุฃู†ูŠ ู‚ุจู„ ูƒู„ู…ุฉ ุงู„ is ู‡ุงูŠ ุจุฏู†ุง ู†ุญุท return
458
00:35:17,610 --> 00:35:22,990
ูˆุงูŠุด ู†ูˆุน ุงู„ return ุจุฏู†ุง ู†ุฑุฌุนู‡ number ูˆู„ุง date ูˆู„ุง
459
00:35:22,990 --> 00:35:27,050
variable character ูˆู„ุง character ุฃุฑุจุนูŠู† ุญุฑู ุจุฏู†ุง
460
00:35:27,050 --> 00:35:32,400
ู†ุญุท data type ุงูŠุด ู†ูˆุน ุงู„ุดูŠุก ุงู„ู„ูŠ ุจุฏู†ุง ู†ุฑุฌุนู‡ ุจุณูู‡ูˆ
461
00:35:32,400 --> 00:35:36,340
ุจุฏูŠ ุฃุญุฏุฏ ุงูŠุด ู†ูˆุน ุงู„ู„ูŠ ุจุฏูŠ ุฃุฑุฌุนู‡ ู„ุฃู† ุนู…ู„ูŠุฉ ุงู„ุชุฑุฌูŠุน
462
00:35:36,340 --> 00:35:40,200
ุจุชุชู… ุจูŠู† ุงู„ begin ูˆุงู„ end ู„ู…ุง ุจุฏูŠ ุฃุนู…ู„ ุงู„ return
463
00:35:40,200 --> 00:35:45,720
ูุนู„ุงู‹ ุจูƒุชุจ ู…ุซู„ุงู‹ return ู…ุซู„ุงู‹ ุจุฏูŠ ุฃุฑุฌุน x return x
464
00:35:45,720 --> 00:35:52,700
ูุจุฑุฌุน ู„ูŠ ู‚ูŠู…ุฉ x ุจุณ ู„ุงุฒู… ุฃูˆู„ ุฃูƒูˆู† ู…ุญุฏุฏ ู„ู‡ ู†ูˆุน ุงู„
465
00:35:52,700 --> 00:35:59,730
return ุฃู†ู‘ู‡ ู…ุซู„ุงู‹ date ุฃูˆ ู…ุซู„ุงู‹ variablecharacter to
466
00:35:59,730 --> 00:36:05,250
ุฃุฑุจุนูŠู† ุญุฑู ุฎู…ุณูŠู† whatever ู‡ู†ุดูˆู code ุนู„ูŠู‡ุง ูˆู†ุดูˆู
467
00:36:05,250 --> 00:36:09,950
ูƒูŠู ุชุดุชุบู„ ู‡ูŠุนู…ู„
468
00:36:09,950 --> 00:36:14,230
function procedure
469
00:36:14,230 --> 00:36:18,870
ุตุบูŠุฑ minus
470
00:36:18,870 --> 00:36:23,640
minus ุงูŠุด ุจุชุนู…ู„ ู‡ุงูŠุŸ ุฃุฎุฐู†ุงู‡ุง ู…ุจุงุฑุญ ุจุชุนู…ู„ comment ูŠุนู†ูŠ
471
00:36:23,640 --> 00:36:27,020
ูƒู„ุงู… ุฃู†ุง ุจุฏูƒ ุชูƒุชุจู‡ ู…ู„ุงุญุธุฉ description ู…ุด ู‡ูŠุฏุฎู„ ููŠ
472
00:36:27,020 --> 00:36:32,360
ุงู„ code ู…ุด ู‡ูŠุดุชุบู„ ุงูŠุด ูƒุงุชุจ including or replace is
473
00:36:32,360 --> 00:36:36,340
more convenient when updating a sub program ูŠุนู†ูŠ
474
00:36:36,340 --> 00:36:41,320
ูƒุงุชุจ ู…ู„ุงุญุธุฉ ุฃู† ุฅุญู†ุง ู†ุนู…ู„ replace ู„ู‡ุง ู…ุนู†ู‰ ุฃูƒุซุฑ ุฃูˆ
475
00:36:41,320 --> 00:36:45,060
ู…ูุถู„ุฉ ุฃูƒุซุฑ ู„ู…ุง ู†ุนู…ู„ update ู„ู…ูŠู† ู„ sub program ุฃูˆ ู„
476
00:36:45,060 --> 00:36:49,540
procedure ู„ุฃู† create or replace procedure ุงูŠุด ุณู…ูŠุช
477
00:36:49,540 --> 00:36:54,840
ุงู„ procedure ุงู„ู„ูŠ ุนู†ุฏูŠ ุจู†ุงุช ูˆุฑุงู‡ ุณู…ูŠุช ุงู„ procedure
478
00:36:54,840 --> 00:37:00,760
ุงุณู…ู‡ award bonus ุฃุนุทูŠ bonus ุชุชุฐูƒุฑ ุงู„ู…ุซุงู„ ุงู„ู„ูŠ ู…ู†
479
00:37:00,760 --> 00:37:05,220
ุดูˆูŠุฉ ุดุฑุญู†ุงู‡ ุฃู†ู‘ู‡ ุจุฏู†ุง ู†ุนุทูŠ bonus ุญุณุจ ุงู„ case ุฃู†ู‘ู‡ C
480
00:37:05,220 --> 00:37:08,660
ูˆู„ุง S ูˆู„ุง H ู†ุฏูŠู†ุง three functions ู„ุฃู† ุจุฏูŠ ุฃูƒุชุจ
481
00:37:08,660 --> 00:37:12,120
ุงู„ functions ู‡ุงูŠ ุฃูˆ ุงู„ procedures ู‡ุงูŠ award bonus
482
00:37:12,120 --> 00:37:16,140
ู„ู…ูŠู† ุจุฏูŠ ุฃุนุทูŠ ุงู„ bonus ุจุฏูŠ ุฑู‚ู… ู…ูˆุธู ุนุดุงู† ุฃุญุณุจู‡ ุงู„
483
00:37:16,140 --> 00:37:23,510
bonus ูุจุฏูŠ variable ุงุณู…ู‡ employee id ู†ูˆุน number
484
00:37:23,510 --> 00:37:28,950
ูˆุญุทูŠุช ุงู„ in ู‡ุฐู‡ ุงู„ in ู‡ุฐู‡ ููŠ ุงู„ุจุฑุงู…ุชุฑ ู…ู…ูƒู† ุชูƒูˆู† in
485
00:37:28,950 --> 00:37:36,610
ู…ู…ูƒู† ุชูƒูˆู† out ู…ู…ูƒู† ุชูƒูˆู† in out ุงูŠุด ูŠุนู†ูŠ ู‡ุฐู‡ ุงูŠุด
486
00:37:36,610 --> 00:37:40,990
ู…ุนู†ุงู‡ุง in ู…ุนู†ุงู‡ุง ุฃู† ู‡ุฐุง ุงู„ variable ุฃู†ุง ููŠ ุงู„
487
00:37:40,990 --> 00:37:44,470
function ู‡ุงูŠ ููŠ ุงู„ procedure ู‡ุงูŠ ุจุณ ุจุฏูŠ ุฃู‚ุฑุฃู‡
488
00:37:44,470 --> 00:37:52,110
ู…ู…ู†ูˆุน ุฃุนุฏู„ ุนู„ูŠู‡ ุจุณ ู…ุณู…ูˆุญ ู„ูŠ ุฃู‚ุฑุฃ ู‚ูŠู…ุชู‡ ูู‚ุท ู„ุบูŠุฑ out
489
00:37:52,110 --> 00:37:57,770
ู…ู…ู†ูˆุน ุฃู‚ุฑุฃู‡ ู…ู‚ุฏุฑุด ุฃุนุฑู ู‚ูŠู…ุชู‡ ู„ูƒู† ู…ุณู…ูˆุญ ู„ูŠ ุฃุนุฏู„ ุนู„ูŠู‡
490
00:37:57,770 --> 00:38:02,830
ูˆุฃุฎุฒู† ููŠู‡ in out ูŠุนู†ูŠ ู…ุณู…ูˆุญ ู„ูŠ ุฃู‚ุฑุฃ ู‚ูŠู…ุชู‡ ูˆุฃุนู…ู„
491
00:38:02,830 --> 00:38:06,490
ุนู„ูŠู‡ุง rewrite ูˆุฃุนุฏู„ ุนู„ูŠู‡ุง ูุฅุญู†ุง ุญุฏุฏู†ุง ุงู„ variable
492
00:38:06,490 --> 00:38:11,790
ุฃูˆ ุงู„ parameter ุงุณู…ู‡ imp underscore id ุจุฏูŠ ุฃู‚ุฑุฃู‡
493
00:38:11,790 --> 00:38:17,200
ูู‚ุท in ู†ูˆุนู‡ number ุจุฏูŠ ูƒู…ุงู† variable ุงุณู…ู‡ bonus
494
00:38:17,200 --> 00:38:20,920
ุจุฑุถู‡ ุจุฏูŠ ุฃู‚ุฑุฃู‡ ูˆู†ูˆุนู‡ number is ุจุฏูŠ ุฃุจุฏุฃ ุงู„
495
00:38:20,920 --> 00:38:26,440
declarations ูƒู… declaration ุนู†ุฏูŠ ุงุชู†ูŠู† two
496
00:38:26,440 --> 00:38:30,220
variables ูˆุงุญุฏ ุงุณู…ู‡ commission ุนุจุงุฑุฉ ุนู† number ูˆ
497
00:38:30,220 --> 00:38:35,480
commission underscore missing exception ุฅุฐุง ููŠ
498
00:38:35,480 --> 00:38:38,500
ู…ุดูƒู„ุฉ ุจุฏูŠ ุฃุนู…ู„ exception ู„ุณู‡ ู…ุง ุดุฑุญู†ุงุด ุงู„ exception
499
00:38:38,500 --> 00:38:41,100
ุฎู„ูŠู†ุง ู†ู†ุณู‰ ุงู„ุณุทุฑ ู‡ุฐุง ู…ุจุฏุฆูŠุงู‹
500
00:38:43,540 --> 00:38:48,720
Begin ุจุฏุฃ ุฃุจุฏุฃ ุงู„ code ูˆุญุท ู…ู„ุงุญุธุฉ ุนุดุงู† ู†ูู‡ู… ุงู„
501
00:38:48,720 --> 00:38:51,680
code executable part starts here ุฃู† ุฅุญู†ุง ุงู„ code
502
00:38:51,680 --> 00:38:55,560
ุชุจุนู†ุง ุจุจุฏุฃ ุงู„ุชู†ููŠุฐ ุชุจุนู‡ ู…ู† ุงู„ุฌุฒุก ู‡ุฐุง select
503
00:38:55,560 --> 00:39:02,620
commission underscore bct ุชู‚ุณูŠู… ู…ูŠุฉ ุฃุฎุฏุช ูƒูˆู„ูˆู… ู…ู†
504
00:39:02,620 --> 00:39:05,580
table ูˆู‚ุณู…ุชู‡ ุนู„ู‰ ู…ูŠุฉ ุงู„ูƒูˆู„ูˆู… ู‡ุฐุง ุฌุงูŠ ู…ู† ุฃูŠ table
505
00:39:05,580 --> 00:39:08,640
from employees
506
00:39:11,850 --> 00:39:14,810
ููŠ ุงู„ commission ุงู„ู„ูŠ ู‡ูŠ ู‡ูŠู‡ุง ุงู„ variable head
507
00:39:14,810 --> 00:39:19,270
ุงู„ู„ูŠ ุฃู†ุง ุนุฑูุชู‡ ุฌุฏูŠุฏ ุฃุฎุฏุช
508
00:39:19,270 --> 00:39:22,670
ู‚ูŠู…ุฉ ู…ู† ูƒูˆู„ูˆู… ููŠ table ูˆู‚ุณู…ุชู‡ุง 100 ูˆุญุทูŠุชู‡ุง ููŠ ุงู„
509
00:39:22,670 --> 00:39:26,690
variable ุงู„ู„ูŠ ุนู†ุฏูŠ where
510
00:39:26,690 --> 00:39:31,930
ุงู„ employee ID ุจูŠุณุงูˆูŠ ุงู„ variable main ู‡ูŠู‡ ุงู„
511
00:39:31,930 --> 00:39:34,930
employee ID ุงู„ู„ูŠ ุฃู†ุง ุฃุนุทูŠุชู‡ ู„ู„ function ูุงู†ูƒุดู† ุฏู‡
512
00:39:34,930 --> 00:39:39,010
ู…ุด ุนุงุฑู ุฃู†ู‡ ู…ูˆุธู ู„ุงุฒู… ุฃู†ุง ุฃุนุทูŠู‡ุง ุฑู‚ู… ุงู„ู…ูˆุธู ู‡ูŠ ุฑู‚ู…
513
00:39:39,010 --> 00:39:41,470
ุงู„ู…ูˆุธู ุงู„ู„ูŠ ุฃู†ุง ู‡ุนุทูŠู„ู‡ ุงู„ function ู‡ุชูŠุฌูŠ ุงู„
514
00:39:41,470 --> 00:39:44,870
function ุชุฌูŠุจ ุงู„ commission BCT ุจุชุงุนุชู‡ุง ูˆุชู‚ุณู…ู‡ุง
515
00:39:44,870 --> 00:39:50,230
ุนู„ู‰ ู…ูŠู† ูู‡ุฐุง ุงู„ variable ู‡ุงูŠ ุฃุฎุฐู†ุงู‡ ู…ู† ุงู„
516
00:39:50,230 --> 00:39:54,170
procedure ู„ุฃู† ุจุนุฏ ู…ุง ุฑุฌุนุช ุงู„ู‚ูŠู…ุฉ ูˆุงุชุฎุฒู†ุช ููŠ ุงู„
517
00:39:54,170 --> 00:39:57,790
commission select into ููŠ ุงู„ commission ุจุนุฏ ู…ุง
518
00:39:57,790 --> 00:40:02,870
ุฎุฒู†ู†ุงู‡ุง ุฌูŠู†ุง ู„ูŠุด ุงุณุชุฎุฏู…ู†ุง ุงู„ if if commission is
519
00:40:02,870 --> 00:40:10,590
null ู†ู„ ู†ู„ ู…ู…ูƒู† ุชุนู…ู„ูŠ ู…ุดุงูƒู„ if commission is null
520
00:40:10,590 --> 00:40:15,910
then raise commissing raise ูŠุนู†ูŠ ุจุชุนู…ู„ exception
521
00:40:15,910 --> 00:40:18,750
ูŠุนู†ูŠ ุฃู†ุง ุจุฏู‡ ุฃุนู…ู„ exception ุจุฏู‘ู‡ ุฃุณู…ูŠู‡ ุจู‡ุฐุง ุงู„ุงุณู…
522
00:40:18,750 --> 00:40:25,770
ู„ูŠุด ุนู…ู„ุช exception ู„ุฃู†ู‡ ู…ุด ู…ู„ุงู‚ูŠ ู„ู‡ ุฑู‚ู… ู†ู„ูˆ ุงู„
523
00:40:25,770 --> 00:40:29,170
null ุจุชุนู…ู„ ู„ูŠ ู…ุดูƒู„ุฉ ููŠ ุงู„ุญุณุงุจุงุช ูˆููŠ ุงู„ูู„ูˆุณ ูุฅุฐุง ููŠ
524
00:40:29,170 --> 00:40:34,650
null ุจุชุนู…ู„ ุฃู†ุง exception ู‡ุงูŠ ูุงูŠุฏุฉ ุงู„ุฑุฒู‚ ุทุจ else
525
00:40:34,650 --> 00:40:40,110
ู…ุด null ูŠุนู†ูŠ ููŠ ุฌูˆุง ู‚ูŠู…ุฉ ููŠ ูู„ูˆุณ else ุจุชุนู…ู„ update
526
00:40:40,110 --> 00:40:45,350
ุนุงู„ employees set ู…ุด ุฃุฎุฐู†ุง ุงู„ update update ู„
527
00:40:45,350 --> 00:40:48,790
table ุงู„ employees set ูƒู„ู‡ู… ุงูŠุด ูƒู„ู‡ู… ุงู„ salary
528
00:40:48,790 --> 00:40:53,870
ุจุฏูˆุง ูŠุตูŠุฑูˆุง ูŠุณุงูˆูŠ ุงู„ salary ุฒุงุฆุฏ bonus ู‡ูŠ ุงู„ bonus
529
00:40:53,870 --> 00:40:58,660
ุงู„ู„ูŠ ุงุญู†ุง ู…ุง ุทูŠู†ุงู‡ ุงู„ู€ bonus ุถุฑุจ ู…ูŠู†ุŸ ุถุฑุจ ุงู„
530
00:40:58,660 --> 00:41:01,660
commission ูˆุงู„ commission ูˆูŠู† ุญุณุจู†ุงุŸ ุงู„
531
00:41:01,660 --> 00:41:06,600
commission ู‡ูŠูˆู… ุงู„ commission BCT ุชู‚ุณูŠู… 100 ุนู…ู„ูŠุฉ
532
00:41:06,600 --> 00:41:10,700
ุญุณุงุจูŠุฉ ู…ุนูŠู†ุฉ ู…ุซู„ุงู‹ ุจุฏู†ุง ู†ุญุณุจ ู„ู„ู…ูˆุธู bonus ู†ุนุทูŠู‡
533
00:41:10,700 --> 00:41:15,040
ุฒูŠุงุฏุฉุŒ ู…ุนุงุฏู„ุฉ ู…ุนูŠู†ุฉ ุจุฏู†ุง ู†ุญุณุจ ู„ู‡ ุถุฑูŠุจุฉุŒ ุฃูŠ ุดูŠุก
534
00:41:15,040 --> 00:41:18,860
where ุงู„ employee IDุŸ ู†ูุณ ุงู„ ID ู„ุฃู† ุฅุญู†ุง ู…ุดุบู„ูŠู†
535
00:41:18,860 --> 00:41:22,500
ุนู„ู‰ ู†ูุณ ุงู„ู…ูˆุธู ู…ุด ู‡ู†ุฌูŠุจ ุงู„ commission ุจุชุงุนุฉ ู…ูˆุธู ูˆ
536
00:41:22,500 --> 00:41:29,260
ู†ุนู…ู„ update ู„ู…ูˆุธู ุซุงู†ูŠ end if ุฃู†ู‡ูŠู†ุง ุงู„ if ุฅุฐุง ุงู„
537
00:41:29,260 --> 00:41:34,680
if ุจุณ ุฅุฐุง ููŠ ูู„ูˆุณ ููŠ ุฑู‚ู… ุนุฏู„ู†ุง ุนู„ู‰ ุงู„ุฑุงุชุจ ูˆุถูู†ุง ู„ู‡
538
00:41:34,680 --> 00:41:38,920
bonus ู…ุง ููŠุด ูู„ูˆุณ null ุงู„ู‚ูŠู…ุฉ null ุจุฏู†ุง ู†ุนู…ู„
539
00:41:38,920 --> 00:41:43,000
exception ููŠ ุงู„ู†ู‡ุงูŠุฉ ู‡ุงูŠ ุงู„ exception ุฑูˆุญู†ุง ุนู„ุงุฌู†ุงู‡
540
00:41:43,000 --> 00:41:45,300
ูƒูŠู ุนู„ุงุฌู†ุงู‡ ู…ุด ูƒุซูŠุฑ ู…ุนู†ู‰ ุฃู†ู‚ุด ุงู„ู…ูˆุถูˆุน ู‡ุงูŠ ุงู„
541
00:41:45,300 --> 00:41:48,360
exception ุฑูˆุญู†ุง ูุญุตู†ุง ุฃู† ู‡ุงูŠ ู†ูˆุน ุงู„ exception ุฅุญู†ุง
542
00:41:48,360 --> 00:41:51,400
ุนู…ู„ู†ุง ู„ู‡ raise ุงู„ cum missing ู‡ุฐุง ุฅุฐุง ูƒุงู† cum
543
00:41:51,400 --> 00:41:54,600
missing ุฑูˆุญ ุงุทุจุน ู„ูŠ ุณุทุฑ ุฃู†ู‘ู‡ this employee does not
544
00:41:54,600 --> 00:41:57,960
receive a commission ู„ุฃู† ุงู„ commission ุนู†ุฏู‡ ู‚ูŠู…ุฉ
545
00:41:57,960 --> 00:42:02,380
none ูุจุณ ุฃู†ุง ู†ุฑูˆุญ ุทุจุนู†ุง ุณุทุฑ ู„ุฃู† ู‡ุฐุง ุงู„ employee
546
00:42:02,380 --> 00:42:09,440
ู…ุง ู„ู‡ commission ูˆุฃู†ู‘ู‡ูŠู†ุง ุงู„ุจุฑู†ุงู…ุฌ ุชู…ุงู… ู‡ุงูŠ ุงู„ end
547
00:42:09,440 --> 00:42:14,080
ููŠ ุงู„ุขุฎุฑ ููŠ
548
00:42:14,080 --> 00:42:21,380
ุงูŠุด ุตุนุจ ููŠ ุงู„ procedure ูˆู„ุณู‡ ู…ุด ูˆุงุถุญ ูŠุนู†ูŠ ู„ูˆ ุทู„ุจู†ุง
549
00:42:21,380 --> 00:42:24,800
ู…ู†ูƒู… ู…ุซู„ุงู‹ ููŠ ุงู„ุงู…ุชุญุงู† ุจุฏู†ุง ู†ูƒุชุจ ุงู„ procedure ุฒูŠ
550
00:42:24,800 --> 00:42:29,560
ู‡ูŠูƒ ู…ุซู„ุงู‹ ุฃู†ู‘ู‡ ูŠุงุฎุฏ ู„ู„ student ูŠุงุฎุฏ ุฑู‚ู… ุงู„ student ูˆ
551
00:42:29,560 --> 00:42:33,080
ูŠุฑูˆุญ ูŠุดูˆู ูƒู… ุนู„ุงู…ุชู‡ ูˆุฅุฐุง ุนู„ุงู…ุชู‡ ู…ุซู„ุงู‹ ุฃูƒุซุฑ ู…ู† ุดูŠุก
552
00:42:33,080 --> 00:42:36,340
ู…ุญุฏุฏ ูŠุญุท ู„ู‡ bonus ู…ุซู„ุงู‹ ุนู„ุงู…ุชูŠู† ุฃู‚ู„ ู…ู† ุดูŠุก ู…ุญุฏุฏ
553
00:42:36,340 --> 00:42:40,500
ูŠุญุท ู„ู‡ bonus ู…ุซู„ุงู‹ ุนู„ุงู…ุฉ ูˆุฒูŠ ู‡ูŠูƒ F ู†ุธุงู… F
554
00:42:40,500 --> 00:42:46,400
statements ุดุบู„ ุฒูŠ ู‡ุฐุง ุตุนุจ ูˆู„ุง ุณู‡ู„ุŸ ู†ุญูƒูŠ ุฅุฐุง ุงู„ุทุงู„ุจ
555
00:42:46,400 --> 00:42:51,180
ู…ุงุฎุฏ ููŠ .. ู…ุซู„ุงู‹ ููŠ ุงู„ quiz ุงู„ูู„ุงู†ูŠ ุฃูƒุซุฑ ู…ู† ุฎู…ุณ
556
00:42:51,180 --> 00:42:54,180
ุนู„ุงู…ุงุช ู†ุนุทูŠู‡ bonus ุนู„ุงู…ุฉ ุฅุฐุง ู…ุงุฎุฏ ููŠ ุงู„ quiz ุฑู‚ู…
557
00:42:54,180 --> 00:42:58,000
ุงุซู†ูŠู† ู…ุซู„ุงู‹ ุนู„ุงู…ุฉ ุฃู‚ู„ ู…ู† ูƒุฏู‡ ูŠุงุฎุฏ bonus ูƒุฏู‡ ู…ู…ูƒู†
558
00:42:58,000 --> 00:43:01,740
ู†ูƒุชุจ ู„ู‡ procedure ุจู‡ุฐุง ุงู„ุดูƒู„ุŸ ูˆู„ุง ุตุนุจุŸ
559
00:43:06,430 --> 00:43:10,050
ุทุจ ู†ุฃุฎุฐ procedure ุฒูŠ ู‡ูŠูƒ ู†ุญุท homework ุนู„ู‰ ุงู„ model
560
00:43:10,050 --> 00:43:12,590
ุนุดุงู† ุชุนุฑููˆุง ุชุญู„ูˆู‡ ุนุดุงู† ู„ู…ุง ูŠูŠุฌูŠ ููŠ ุงู„ู†ู‡ุงูŠุฉ ุชุนุฑููˆุง
561
00:43:12,590 --> 00:43:17,770
ุชุญู„ูˆู‡ ู‡ู†ุฒู„
562
00:43:17,770 --> 00:43:25,410
ุงู„ chapter ุงู„ูŠูˆู… ุฅู† ุดุงุก ุงู„ู„ู‡ ุฎู„ุงุต
563
00:43:25,410 --> 00:43:29,470
ุฎู„ุตู†ุง ุงู„ุขู† ูƒูŠู ุจู†ูุฐ ุงู„ code ุงู„ู„ูŠ ูƒุชุจู†ุง ู‡ุฐุง ุงู„ code
564
00:43:29,470 --> 00:43:33,090
ุงู„ุขู† function ุงุชุฎุฒู†ู‡ ูƒูŠู ุจู†ูุฐู‡ุงุŸ ู‡ุฐู‡ ุณุทุฑ ุงู„ุชู†ููŠุฐ ุงู„
565
00:43:33,090 --> 00:43:34,410
execute ู‡ุฐุง ุดุงูŠููŠู†ู‡
566
00:43:37,370 --> 00:43:39,390
Execute ุงุณู… ุงู„ function ุฃูˆ ุงู„ procedure ุงู„ู„ูŠ
567
00:43:39,390 --> 00:43:42,330
ุนู…ู„ู†ุงู‡ ูˆุฅูŠุด ู…ุง ูƒุงู† ูŠุงุฎุฏ two variables ุงู„ู„ูŠ ู‡ูˆ ุฑู‚ู…
568
00:43:42,330 --> 00:43:48,430
ุงู„ู…ูˆุธู ูˆู‚ูŠู…ุฉ ุงู„ bonus ู‡ู† ุญุทู†ุงู‡ู… ู„ู…ุง ูƒู„ ู…ูˆุธู ุจุฏู‡
569
00:43:48,430 --> 00:43:51,150
ูŠุนุทูŠู‡ bonus ุจุณู…ุน ุนู„ูŠู‡ ุบูŠุฑ ุฃู† ุฃูู†ุงุฏูŠ ู†ูุณ ุงู„ function ูˆ
570
00:43:51,150 --> 00:43:54,810
ุฃุบูŠุฑ ุฑู‚ู… ุจุบูŠุฑ ุฑู‚ู… ุงู„ู…ูˆุธู ูˆู‚ูŠู…ุฉ ุงู„ bonus ุงู„ู„ูŠ ุจุฏู‡
571
00:43:54,810 --> 00:43:58,550
ูŠุนุทูŠู‡ุง ู„ุญุงู„ ู‡ุงู„ function ุจุชุดุชุบู„ ูˆุจุชุนู…ู„ ูƒู„ ุญุณุงุจุงุช
572
00:43:58,550 --> 00:44:00,630
ุงู„ู„ูŠ ุงุญู†ุง ุดูˆูู†ุงู‡ุง automatic ุจุฏู„ ู…ุง ุฃุนูŠุฏ ุงู„ code
573
00:44:00,630 --> 00:44:04,880
ุฃุฑุฏ ุฃูƒุชุจู‡ ุฃูƒุซุฑ ู…ู† ู…ุฑุฉ ุจู†ูƒุชููŠ ุจู‡ูŠูƒ ูˆุจู†ูƒู…ู„ ุงู„ู…ุฑุฉ
574
00:44:04,880 --> 00:44:08,140
ุงู„ุฌุงูŠุฉ ู†ุชูƒู„ู… ุนู† ุงู„ functions ูˆุนู† ุงู„ cursors ูˆุนู†
575
00:44:08,140 --> 00:44:09,360
ุงู„ triggers ุฅู† ุดุงุก ุงู„ู„ู‡