Basics of Database

Home/SQL/Basics of Database

What is RDBMS?

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates


RDBMS stands for Relational Database Management System. RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.
A Relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd.

Codd Rules:

Rule 0 – Foundation Rule:

A relational database management system must manage its stored data using only its relational capabilities.

Rule 1 – Information Rule:

All information in the database should be represented in one and only one way – as values in a table.

Rule 2 – Guaranteed Access Rule:

Each and every datum (atomic value) is guaranteed to be logically accessible by resorting to a combination of table name, primary key value and column name.

Rule 3 – Systematic Treatment of Null Values:

Null values (distinct from empty character string or a string of blank characters and distinct from zero or any other number) are supported in the fully relational DBMS for representing missing information in a systematic way, independent of data type.

Rule 4 – Dynamic On-line Catalog Based on the Relational Model:

The database description is represented at the logical level in the same way as ordinary data, so authorized users can apply the same relational language to its interrogation as they apply to regular data.

Rule 5 – Comprehensive Data Sublanguage Rule:

A relational system may support several languages and various modes of terminal use. However, there must be at least one language whose statements are expressible, per some well-defined syntax, as character strings and whose ability to support all of the following is comprehensible:

  • Data definition
  • View definition
  • Data manipulation (interactive and by program)
  • Integrity constraints
  • Authorization
  • Transaction boundaries (begin, commit, and rollback)

Rule 6 – View Updating Rule:

All views that are theoretically updateable are also updateable by the system.

Rule 7 – High-level Insert, Update, and Delete:

The capability of handling a base relation or a derived relation as a single operand applies nor only to the retrieval of data but also to the insertion, update, and deletion of data.

Rule 8 – Physical Data Independence:

Application programs and terminal activities remain logically unimpaired whenever any changes are made in either storage representation or access methods.

Rule 9 – Logical Data Independence:

Application programs and terminal activities remain logically unimpaired when information preserving changes of any kind that theoretically permit unimpairment are made to the base tables.

Rule 10 – Integrity Independence:

Integrity constraints specific to a particular relational database must be definable in the relational data sublanguage and storable in the catalog, not in the application programs.

Rule 11 – Distribution Independence:

The data manipulation sublanguage of a relational DBMS must enable application programs and terminal activities to remain logically unimpaired whether and whenever data are physically centralized or distributed.

Rule 12 – Nonsubversion Rule:

If a relational system has or supports a low-level (single-record-at-a-time) language, that low-level language cannot be used to subvert or bypass the integrity rules or constraints expressed in the higher-level (multiple-records-at-a-time) relational language.

What is table?


The data in RDBMS is stored in database objects called tables. The table is a collection of related data entries and it consists of columns and rows.
Remember, a table is the most common and simplest form of data storage in a relational database.

What is field, or column?

Every table is broken up into smaller entities called fields. The fields in the CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY.
A field is a column in a table that is designed to maintain specific information about every record in the table.

What is record, or row?

A record, also called a row of data, is each individual entry that exists in a table. For example there are 7 records in the above CUSTOMERS table.
A record is a horizontal entity in a table.

What is NULL value?


A NULL value in a table is a value in a field that appears to be blank which means A field with a NULL value is a field with no value.
It is very important to understand that a NULL value is different than a zero value or a field that contains spaces. A field with a NULL value is one that has been left blank during record creation.

Pictorial representation of a Table?


studenttable

Terminologies & Integrity types associated with RDBMS

PRIMARY KEY Column used to uniquely identify a Tuple.
FOREIGN KEY Column of a table used to establish relationship with other tables and present itself in all the relation tables.
ALTERNATE KEY Column or combination of columns which has unique values but not selected as primary key and is not part of the primary
COMPOSITE KEY A combination of columns used to identify a unique row. Combination of customer name and address can consider to be the
Domain Integrity Integrity of information allowed in column.
Referential Integrity Rule states that every foreign key in the first table must either match a primary key value in the second table or must
Entity Integrity Rule states that no column that is part of a primary key can have a null value


Related Resource External VBA Reference
Excel VBA Reference Project Management Reference
VBA Reference:
Excel Reference:
By |December 24th, 2012|SQL|1 Comment

About the Author:

PNRao is a passionate business analyst and having close to 10 years of experience in Data Mining, Data Analysis and Application Development. This blog is his passion to learn new skills and share his knowledge to make you expertise in Data Analysis (Excel, VBA, SQL, SAS, Statistical Methods, Market Research Methodologies and Data Analysis Techniques).

Leave A Comment


Related pages


dim excel vbaprotect unprotect sheet vbaadvanced excel vbapivot tutorial excelaccess vba sql updatevba code for msgboxexcel vba listbox additemunprotect excel workbook with passwordformulas in vbavba file pathexcel remove duplicates formulaexcel vba loopingadodb.connection providervba excel do while loopddl commands sqlexcel protect worksheetaccess vba userformworksheet name in vbalearn vba in excelexcel autofit cellshow to create a data validation list in excel 2010how to unlock password protected excelhow to remove empty columns in excelexcel insert chart titlewhat is a stock chart in excelvb function syntaxcombobox multiselectvba typeofms access run query vbaexcel vba delete columnsumifs function in excel 2007select sheet excel vbavba create hyperlinkexcel formula to remove blank rowsunhide column excel 2010iff in excelproject planner excel templateexcel shortcut delete rowvbscript msgbox yes nocells function vbarecord macro in excelvlookup syntax in excelexcel macro cellslistbox codemacro open excel fileexcel macro to merge cellsvba macro tutorialunprotecting an excel worksheetexcel filter based on cell valuehow do i autofit in exceluserforms excelscheduling template in excelvba crlfvlookup formula in excel 2010 with examplems word macros tutorialhow to use vlookup excel 2013excel macro basicunprotect excel file 2010excel vba cell widthadd developer tab to ribbon in wordoption button excel vbaproject management timeline excel templateexcel macro formcheckbox tutorialmerging excel cellslookup function exampleexcel 3d surfacewhy vlookup is usedcollection vbawhat is operand and operatorms excel formulas with examples pdf in hindiddl dml statementsend vbacombine sheets in excel