RDBMS Concepts

RDBMS
The RDBMS Stands for Relational Database Management System . All the Modern database systems are used this RDMS model.
In RDBMS data are stored in Tables. A Table is a collection of related data and it is stored in rows and columns

Relational Data Model
The Relational data model used to represent the data as a two dimensional table called Relations.

Example
The following Example shows the Employee Relation

Id EmployeeName Department
101 Martin Production
102 Tom Sales
103 Ann Human Resource

Attributes / Field
The Top of row in a Relation called Attributes. Attributes are simply called as Fields. A field is a column in a table that is designed to maintain specific information about every record in the table.
In the above example EmployeeId, EmployeeName and the Department are the Attributes of the relation table Employee

Schemas
The name of the relation and the set of attributes or fields for a relation called Schema for that relation.
For the above example,
The Schema for the relational table Employee is
EmployeeId, EmployeeName, Department)

Id EmployeeName Department
Here Employee is the name of the table and EmployeeId, EmployeeName and Department are the Attributes of the Relational table Employee.

Tuples / Rows / Records
Each row of a relation other than the Attributes (Top of the row in a relation table) are called Tuples.  A record is each individual entry that exists in a table. For example there are 3 records in the above Employee table.
101, Martin and Production is the one tuple of the attributes EmployeeId, EmployeeName and Department for the relation Employee.
And it written as,
(101, Martin, Production)
or in the table format
101 Martin Production

the following are the tuples or records of the table Employee
101 Martin Production
102 Tom Sales
103 Ann Human Resource



Introduction To SQL

Introduction To SQL

Introduction:


SQL is the Structured Query Language, it is the Standard language that used to access and manipulates the Databases.

SQL is a database language, it is used for database creation, deletion, fetching rows and modifying rows etc. It is pronounced as S-Q-L or sometime See-Qwell.
The Following are the Most Popular Databases,

  • SQL Server 
  • Oracle
  • MySQL 
  • DB2 
  • Sybase
  • Microsoft Access

SQL is a database language, it is used for database creation, deletion, fetching rows and modifying rows etc. It is pronounced as S-Q-L or sometime See-Qwell.
Using SQL (Structured Query language) we can do many more things. Bellow are the some of them

  • Execute queries against a database using English-like statement
  • Retrieve data from a database
  • Insert records in a database
  • Update records in a database
  • Delete records from a database
  • Create new databases
  • Create new tables in a database
  • Create stored procedures in a database
  • Create views in a database
  • Set permissions on tables, procedures, and views

We will see how to work with SQL in the next coming topics.



SQL DBMS Concepts


DBMS Concepts:

DBMS
Database management system (DBMS) is a software system that allows Defining, Creation, Querying, Update, and Administration of data stored in data files. Data will be stored in the file system.

DBMS uses file system to store data, so there will not be any relation between the tables. Where as in RDBMS data are stored in Table format and there might be a relationship between the tables.
Most of the current database systems are using Relational Database Management System concept.

Will see more details abut RDBMS in the next chapter.



SQL Learning Tutorials For Beginners

SQL Learning Tutorials For Beginners

In this SQL Learning Tutorials For Beginners, we will learn database concepts and how to create and work with various databases like MySQL, SQL Server, Access, Oracle, Sybase, DB2, and other database systems using the Structured Query language i.e. SQL. This SQL tutorial prepared for the beginners to help them understand the basic to advanced SQL concepts.

SQL Learning Tutorials For Beginners


Bellow are the topics covered under this Tutorial.

Introduction To SQL

DBMS Concepts

RDBMS Concepts

Data Integrity

Database Normalization

DML and DDL in SQL

Data Definition Language (DDL)

Data Manipulation Language (DML)


SQL Queries

SQL Statements:

SQL Data Definition Language (DDL) Queries
Create Database
Drop Database
Create Table
Delete
Drop Table
Alter Table

SQL Data types

SQL Data Manipulation Language (DML) Queries
Select
Where
Conditional operators
Insert
Update
Delete
Truncate

Sub Queries
Alias
Like
Between
In
Union
Joins
Not null
Unique

SQL Keys
Primary key
Foreign key

SQL Functions
Avg
Count
First
Last
Max
Min
Sum
Groupby
Having
Ucase
Lcase
Mid
Len
Round
Date
Now
Format