Introduction To SQL For Data Analysis
Introduction To SQL For Data Analysis
What is Data?
In simple words, data can be facts related to any
object in consideration. For example, your name, age,
height, weight, etc. are some data related to you. A
picture, image, file, pdf, etc. can also be considered
data.
What is Database?
A database is a systematic collection of data. They
support electronic storage and manipulation of data.
Databases make data management easy.
Database Management System
Schema
The database schema refers to the organization of data. It is a blueprint of how the database is constructed. In RDBMS, the d atabase model is
implemented by the schema. It is the Entity-relationship model.
Table
One of the main units of the schema is the table. In RDBMS, tables are laid out and associated with each other in different t ypes of relationships (one to
one, one to many, many to many) relationships.
Columns
The vertical partitions of tables are called columns. In RDBMS, a column is often also called an attribute.
Rows
The horizontal partitions of tables are called rows. In RDBMS, a row is often also called a tuple.
Indexes
In RDBMS, the index is a data structure that improves the operation of the table by quickly locating the data.
-
SQL
Statements
SQL is the Structured Query Language
for RDBMS databases. When you retrieve
data, you typically use SQL statements to
retrieve the data. You can join tables
together to select out just the right types
of data from different purposes using
SQL statements.
MySQL
8. Open MySQL Servers, select the server you want to install, and move it to the Products/Features to
be installed window section. Now, expand Applications, choose MySQL Workbench and MySQL shell.
Move both of them to ‘Products/Features to be installed’.
9. Click on the Next button. Now, click on the Execute button to download and install the MySQL server,
MySQL Workbench, and the MySQL shell.
10. Once the product is ready to configure, click on Next. Under Type and Networking, go with the
default settings and select Next.
11. For authentication, use the recommended strong password encryption.
Now, you can use the MySQL query tab to write your SQL queries.
MySQL Workbench