1 00:00:09,410 --> 00:00:12,410 [music] In this video, we'll take a high-level look at SQL. 2 00:00:12,410 --> 00:00:18,520 SQL is a bit different from the other languages we’ve covered so far. 3 00:00:18,520 --> 00:00:23,520 First off, it's formally pronounced “ess cue el,” although some people say “sequel.” 4 00:00:23,520 --> 00:00:29,670 While the acronym stands for “Structured Query Language,” many people do not consider 5 00:00:29,670 --> 00:00:35,480 SQL to be like other software development languages because it's a non-procedural language 6 00:00:35,480 --> 00:00:39,980 and its scope is limited to querying and managing data. 7 00:00:39,980 --> 00:00:45,600 While it is not a “data science” language per se, data scientists regularly use it because 8 00:00:45,600 --> 00:00:48,680 it's simple and powerful! 9 00:00:48,680 --> 00:00:54,969 Another couple of neat facts about SQL: it's much older than Python and R, by about 20 10 00:00:54,969 --> 00:00:58,050 years, having first appeared in 1974. 11 00:00:58,050 --> 00:01:02,329 And, SQL was developed at IBM! 12 00:01:02,329 --> 00:01:08,220 This language is useful in handling structured data; that is, the data incorporating relations 13 00:01:08,220 --> 00:01:11,790 among entities and variables. 14 00:01:11,790 --> 00:01:15,880 SQL was designed for managing data in relational databases. 15 00:01:15,880 --> 00:01:22,160 Here you can see a diagram showing the general structure of a relational database. 16 00:01:22,160 --> 00:01:28,580 A relational database is formed by collections of two-dimensional tables; for example, datasets 17 00:01:28,580 --> 00:01:31,900 and Microsoft Excel spreadsheets. 18 00:01:31,900 --> 00:01:37,810 Each of these tables is then formed by a fixed number of columns and any number of rows. 19 00:01:37,810 --> 00:01:38,810 BUT! 20 00:01:38,810 --> 00:01:44,300 Even though SQL was originally developed for use with relational databases, because it's 21 00:01:44,300 --> 00:01:52,310 so pervasive and easy to use, SQL interfaces for many NoSQL and big data repositories have 22 00:01:52,310 --> 00:01:54,940 also been developed. 23 00:01:54,940 --> 00:02:01,160 The SQL language is subdivided into several language elements, including clauses, expressions, 24 00:02:01,160 --> 00:02:04,399 predicates, queries, and statements. 25 00:02:04,399 --> 00:02:07,259 So what makes SQL great? 26 00:02:07,259 --> 00:02:12,670 Knowing SQL will help you do many different jobs in data science, including business and 27 00:02:12,670 --> 00:02:17,420 data analyst, and it's a must in data engineering. 28 00:02:17,420 --> 00:02:22,440 When performing operations with SQL, you access the data directly. 29 00:02:22,440 --> 00:02:25,360 There's no need to copy it beforehand. 30 00:02:25,360 --> 00:02:29,690 This can speed up workflow executions considerably. 31 00:02:29,690 --> 00:02:34,110 SQL is the interpreter between you and the database. 32 00:02:34,110 --> 00:02:40,140 SQL is an American National Standards Institute, or "ANSI," standard, which means if you learn 33 00:02:40,140 --> 00:02:45,730 SQL and use it with one database, you will be able to easily apply that SQL knowledge 34 00:02:45,730 --> 00:02:48,670 to many other databases. 35 00:02:48,670 --> 00:02:57,500 There are many different SQL databases available, including MySQL, IBM Db2, PostgreSQL, Apache 36 00:02:57,500 --> 00:03:06,040 OpenOffice Base, SQLite, Oracle, MariaDB, Microsoft SQL Server, and more. 37 00:03:06,040 --> 00:03:11,250 The syntax of the SQL you write might change a little bit based on the relational database 38 00:03:11,250 --> 00:03:14,140 management system you’re using. 39 00:03:14,140 --> 00:03:19,450 If you are looking to learn SQL you would be best served to focus on a specific relational 40 00:03:19,450 --> 00:03:24,840 database and then plug into the community for that specific platform. 41 00:03:24,840 --> 00:03:28,510 There are also many great introductory courses on SQL available!