All language subtitles for [SubtitleTools.com] What Is SQL- - Learning Oracle 12c [Video]_2

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,400 --> 00:00:05,780 In this lesson, we're taking a look at SQL, or S-Q-L. 2 00:00:05,780 --> 00:00:09,410 And SQL stands for Structured Query Language. 3 00:00:09,410 --> 00:00:13,220 So why is this of interest to a database administrator? 4 00:00:13,220 --> 00:00:17,090 Well, primarily because SQL is the language 5 00:00:17,090 --> 00:00:19,370 of relational databases. 6 00:00:19,370 --> 00:00:23,870 The purpose of SQL is to manipulate relational data. 7 00:00:23,870 --> 00:00:26,120 So we have relational databases that 8 00:00:26,120 --> 00:00:30,170 have tables and relationships between those tables, 9 00:00:30,170 --> 00:00:33,620 and SQL is a specially-designed language 10 00:00:33,620 --> 00:00:36,590 to operate with those tables. 11 00:00:36,590 --> 00:00:38,840 When we talk about what is SQL? 12 00:00:38,840 --> 00:00:41,090 It's important to classify a little bit 13 00:00:41,090 --> 00:00:42,650 about what it is not. 14 00:00:42,650 --> 00:00:46,970 So SQL is not a proprietary language 15 00:00:46,970 --> 00:00:49,160 that is owned by any company. 16 00:00:49,160 --> 00:00:52,940 When Oracle says that they're the caretaker of a language 17 00:00:52,940 --> 00:00:56,390 like Java, that's different than their relationship 18 00:00:56,390 --> 00:01:00,710 to SQL, because SQL is built on a standard 19 00:01:00,710 --> 00:01:04,040 by the ANSI's standard organization. 20 00:01:04,040 --> 00:01:06,980 So it's the American National Standards Institute. 21 00:01:06,980 --> 00:01:10,580 And they come up with the standards for what 22 00:01:10,580 --> 00:01:12,710 will be in the SQL language. 23 00:01:12,710 --> 00:01:16,250 So no company-- no relational database company-- 24 00:01:16,250 --> 00:01:17,800 owns SQL. 25 00:01:17,800 --> 00:01:21,140 It's also not to be confused with SQL Server. 26 00:01:21,140 --> 00:01:24,620 SQL Server is a relational database product 27 00:01:24,620 --> 00:01:25,940 from Microsoft. 28 00:01:25,940 --> 00:01:28,900 People refer to it, often, as SQL, 29 00:01:28,900 --> 00:01:30,740 and that can be very confusing. 30 00:01:30,740 --> 00:01:32,090 SQL is a language. 31 00:01:32,090 --> 00:01:35,450 It is a language to deal with relational databases. 32 00:01:35,450 --> 00:01:38,750 We classify it as a fourth-generation language, 33 00:01:38,750 --> 00:01:40,370 or 4GL. 34 00:01:40,370 --> 00:01:42,420 So what do we mean by that? 35 00:01:42,420 --> 00:01:46,520 A lot of the languages we think of when we consider the term 36 00:01:46,520 --> 00:01:50,990 "programming language" fall into the category of a 3GL, 37 00:01:50,990 --> 00:01:53,130 or third-generation language. 38 00:01:53,130 --> 00:01:57,650 And those are languages like C and C++ and Java. 39 00:01:57,650 --> 00:02:03,470 In using a 3GL, you have much more control and responsibility 40 00:02:03,470 --> 00:02:07,430 for things like memory usage with variables. 41 00:02:07,430 --> 00:02:11,270 Fourth-generation languages are meant to be easier to use. 42 00:02:11,270 --> 00:02:14,780 They're supposed to be closer to natural language. 43 00:02:14,780 --> 00:02:19,310 So most people would find that SQL is easier to learn than C 44 00:02:19,310 --> 00:02:20,950 or C++. 45 00:02:20,950 --> 00:02:23,550 SQL is classified into sublanguages, 46 00:02:23,550 --> 00:02:25,730 and each one of those sublanguages kind of 47 00:02:25,730 --> 00:02:30,050 covers a portion of the language syntax itself. 48 00:02:30,050 --> 00:02:31,800 So we'll take a look at these. 49 00:02:31,800 --> 00:02:36,410 The first sublanguage is DML, or Data Manipulation Language. 50 00:02:36,410 --> 00:02:40,700 So this is going to be the subsection of the language that 51 00:02:40,700 --> 00:02:44,990 does things like selecting data, or querying data. 52 00:02:44,990 --> 00:02:46,640 So SELECT statements are primarily 53 00:02:46,640 --> 00:02:49,470 used in things like reporting. 54 00:02:49,470 --> 00:02:52,670 It also is classified as INSERTs-- 55 00:02:52,670 --> 00:02:54,180 so an INSERT statement. 56 00:02:54,180 --> 00:02:57,170 So that is inserting data into a table-- 57 00:02:57,170 --> 00:03:01,530 so inserting a row or rows into a table. 58 00:03:01,530 --> 00:03:04,820 DML also includes UPDATE. 59 00:03:04,820 --> 00:03:08,390 So an UPDATE statement allows us to modify data, 60 00:03:08,390 --> 00:03:11,330 change existing data that's in a table 61 00:03:11,330 --> 00:03:14,090 into whatever is the desired state. 62 00:03:14,090 --> 00:03:15,740 And finally, DELETE-- 63 00:03:15,740 --> 00:03:19,980 DELETE is the removing of a row or rows from a table. 64 00:03:19,980 --> 00:03:21,680 So all of these three-- 65 00:03:21,680 --> 00:03:23,840 SELECT, INSERT, UPDATE, and DELETE-- 66 00:03:23,840 --> 00:03:30,210 belong to the DML portion, or the DML sublanguage of SQL. 67 00:03:30,210 --> 00:03:35,070 The next sublanguage is DDL, or Data Definition Language. 68 00:03:35,070 --> 00:03:37,920 So this is going to be the aspect of SQL 69 00:03:37,920 --> 00:03:41,020 where we manipulate database objects. 70 00:03:41,020 --> 00:03:44,400 So those are going to be where we create the definition 71 00:03:44,400 --> 00:03:46,300 of those objects themselves. 72 00:03:46,300 --> 00:03:48,840 So rather than selecting data from an object 73 00:03:48,840 --> 00:03:51,450 or inserting data into an object, 74 00:03:51,450 --> 00:03:54,390 here we're actually creating the objects, 75 00:03:54,390 --> 00:03:57,540 or we're dropping them, or we're changing the objects 76 00:03:57,540 --> 00:03:59,340 in some fundamental way. 77 00:03:59,340 --> 00:04:03,300 So a CREATE TABLE statement falls under DDL. 78 00:04:03,300 --> 00:04:07,050 So CREATE TABLE would actually create the column structure, 79 00:04:07,050 --> 00:04:11,400 the storage structure of a table for DML statements 80 00:04:11,400 --> 00:04:14,070 to be able to manipulate data. 81 00:04:14,070 --> 00:04:17,910 Something like a DROP INDEX statement would be DDL-- 82 00:04:17,910 --> 00:04:21,180 dropping an existing index in the database. 83 00:04:21,180 --> 00:04:24,210 ALTER SEQUENCE-- SEQUENCE is a database object 84 00:04:24,210 --> 00:04:27,120 that contains a sequential number that's 85 00:04:27,120 --> 00:04:29,700 used usually in row data. 86 00:04:29,700 --> 00:04:32,850 An ALTER SEQUENCE would be considered 87 00:04:32,850 --> 00:04:35,130 DDL, as would ALTER TABLE. 88 00:04:35,130 --> 00:04:40,270 So those fall under the category of Data Definition Language. 89 00:04:40,270 --> 00:04:46,320 DCL-- now, DML and DDL are pretty well-used terms 90 00:04:46,320 --> 00:04:49,590 in referring to sublanguages of SQL. 91 00:04:49,590 --> 00:04:52,200 You hear the term DCL less often. 92 00:04:52,200 --> 00:04:55,230 So DCL will be Data Control Language, 93 00:04:55,230 --> 00:04:58,590 and here we're talking about things like data access, 94 00:04:58,590 --> 00:05:00,450 and primarily permissions. 7482

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.