Search Helium

Home > Computers & Technology > Software > Software & Web Development

Understanding the relational database

by Raj Kumar

Created on: October 20, 2009

Relational database is hugely popular and commercially used to store information of diverse domains including insurance, healthcare, banking, finance, automobile, manufacturing, and others. Actually a database does not works standalone but it is implemented as part of database management system. A relational database works as a part of database system called Relational Database Management System (RDBMS). This system was initially proposed by Edger Frank Codd, a British computer scientist. The relational database is based on Relational Model which follows guidelines laid down by Codd's 12 rules. In this format of data storage, user can view the data in the form of tables. A table consists of rows and columns like Microsoft Excel worksheet. Physically the actual data is stored in data pages and managed by RDBMS. Relational database use Structured Query Language (SQL) as a standard mean to access and manipulate the data in tabular form.

Depending on the data, relational database organizes it into three main relationships viz. one-to-one, one-to-many, and many-to-many. These relations are implemented by storing the data into table which in turn organize the resulting data into rows and columns. Each row in a table is related to one or more rows in another tables based on primary and foreign key relationships. Primary key is one of the database constraints which provide unique identification to each row within a table. There are other types of constraint such as check or domain constraint which is normally used to restrict the entered data or implement proper validation satisfying specific business rules. In relational model database, these constraints play important role in maintaining the entity and referential data integrity.

In relational database, SQL queries are executed to fulfill the request for data in required business format. These queries involve different operators like Comparison operators viz. =, <>, !=, <, >, >=, <= and Logical operators viz. AND, OR, NOT. These operators are used along with SQL clauses - WHERE, and HAVING clause. They provide a searching and filtering criteria for the data to be accessed or manipulated. Various commands like INSERT, UPDATE, DELETE, CREATE TABLE, and ALTER TABLE are used to play with table data. Depending on functionality, these commands are grouped into three main categories: Data Definition Language (DDL), Data Manipulation Language (DML) and Data Control Language (DCL). Several SQL joins are used to relate different tables and filter out unwanted data. These joins include SQL Equi joins, Inner join, and Outer joins. They are used along with WHERE clause in DML commands. User can create their own functions and can also use inbuilt functions like COUNT, MAX, MIN, SUM, Numerical, Date and other text functions.

Relational database involves different objects like stored procedures, views, indexes and triggers. It also provides features like SQL Tuning and Optimization for better and faster performance. Currently there are different software vendors like Microsoft, IBM, and Oracle which provide commercial RDMBS. Popular RDBMS available in the market are Microsoft SQL Server, Oracle, DB2, MySQL, ASE Sybase and many more.

Learn more about this author, Raj Kumar.
Click here to send this author comments or questions.

Helium Debate

Cast your vote!

Which is the better server operating system: Windows or Linux?

Click for your side.

269687

Featured Partner

Population Services International

PSI is a leading global health organization with programs targeting malaria, child survival, HIV and reproductive health. Working in partnership within the public and private sectors, and harnessing the power of markets, PSI provides lif...more


CONNECT WITH US

Read
our blog
Helum for writers

Write and get published
Share with other writers
Polish your freelancing skills

Join our active writing community
Helium Content Source for Publishers

Quality articles from proven freelancers
Exclusive rights, fast turnaround
Brand engagement, business blogging -- our writers do it all

Get custom content today!

INFORMATION


Helium, Inc.
200 Brickstone Square Andover, MA 01810 USA
#