My sql intro
My sql intro
Installation of My SQL
SQL Data Types(Numeric, character, Date and time types, Boolean types)
SQL Views
Data
• Definition: Data refers to raw facts and figures that do not have any specific meaning on
their own. It is the basic unit of information stored in or processed by a computer.
• Examples:
o Dates: 2024-12-26
• Types of Data:
o Structured Data: Data that is organized into rows and columns (e.g., a table of
employee records in a database).
o Unstructured Data: Data without a predefined format (e.g., images, videos, audio
files).
Database
• Definition: An RDBMS is a software system that allows you to create, manage, and interact
with relational databases. It organizes data into tables (rows and columns) and uses
relationships between these tables.
• Key Features:
1. Data Storage in Tables: Each table stores related data in rows (records) and columns
(fields).
2. Relationships Between Tables: Tables can relate to one another using primary and
foreign keys.
o MySQL
o PostgreSQL
o Oracle Database
• MySQL is open-source
• MySQL is free
• MySQL is cross-platform
MySQL Comments
-- Select all
SELECT * FROM Customers;
The following example uses a single-line comment to ignore the end of a line:
Multi-line Comments
Multi-line comments start with /* and end with */.
Any text between /* and */ will be ignored.