Introduction to SQL
SQL
SQL stands for Structured Query Language
Data
Data is a raw fact which describes the properties of an object.
Properties is also known as attributes
Object is also known as entity
P.S. Focus on the concept not on how beautiful Julli looks
In this example, we have a beautiful woman named Julli. Julli is 21 years old, female, 5'5" tall, and weighs about 45 kg. These are some of the details about Julli. However, if we only mention "21 years old," "female," and "45 kg" without specifying what or who we are describing, the information is incomplete. These are raw facts, but about what? In this case, they describe the object—Julli.
So, this concludes that data is a raw fact which describe the properties of an object.
Database
Database is a place or a medium in which data is stored in systematic and organised order.
In the database, we will perform one operation called CRUD operation
C - create (Insert)
R - read (Retrieve)
U - update (Modify)
D - delete (Drop)
DBMS
DBMS stands for DataBase Management System.
DBMS is a software which is used to store data in a systematic and organised manner.
The main features of DBMS are security and authentication.
To communicate with DBMS we use Query Language.
In DBMS the data is stored in file format.
RDBMS
RDBMS stands for Relational DataBase Management System.
RDBMS is also software which is used to store data in a systematic and organised manner.
The main features of RDBMS are security and authentication.
To communicate with RDBMS we use Structured Query Language.
In RDBMS the data is stored in table format.
Relational Model
Any DBMS software which follows relational model it will become RDBMS software.
In relational model, we store the data in the form of table format.
Table
The combination of rows and columns is called as table.
Table consists of 3 parts:
Rows/ Records/ Tuples
Columns/ Fields/ Attributes
Cell
Rows
Horizontal Portion of the table is called as Row
Row is also called as Records or Tuples
Columns
Vertical Portion of the table is called as Column
Column is also called as Fields or Attributes
Cell
The smallest unit of the table is Cell
Intersection of rows and columns is called as Cell.
Rules of E. F. Codd
The data entered in a cell must be a single value
According to E. F. Codd rules, we can store data in multiple tables and if needed we can establish the relation between these tables using key attributes.
In RDBMS, we can store data in tabular form, which includes Meta Data
Meta data is the data about the data
We can validate the data in two steps -
By assigning it the data type
By assigning it constraints
Subscribe to my newsletter
Read articles from Gautami Shetty directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by