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


advanced vlookup excel 2010count rows vbaexcel remove duplicates based on two columnsunlock the excel sheetdelete duplicate datahow to update hyperlinks in excelhow do you combine multiple excel worksheets into oneadodb.recordset vbatrim formula in excel 2007userform controlshow to unhide a row in excelexcel vba clear cellexcel 2010 remove blank rowssave excel vbawhat is the sumif function in excelagenda excel templatevba examples for excel 2007pivot table commandsheets vbaexcel macro 2007excel vba insert rowcase vba excelhow to unhide columns in excel 2013excel activate workbookdelete all blank rows in excelsave excel file vbahow to duplicate excel sheetvba close filevba excel tutorial pdfnot equal vbaexample of vlookup function in excel 2010vba activex controlsvlookup and hlookup in excel with examplevba excel remove duplicateshow to learn vba for excelvba byrefexamples of if statements in excelreplace formula in excelcopy excel sheet with formulas to another workbookexcel vba gotofilter in excel vbafor loop in macro excelproject dashboard pptexcel vba matrixcountif functionsvba interview questiondo while loop excel vbadelete repeated rows in excelexcel macro for vlookupvba function tutorialhow to open excel vbadynamic charts in excelexcel vba listboxvba worksheet deleteapplication.getopenfilename vbaexcel hidden columnsvba if statementexcel countif examplehow to unhide rows in excel 2010activecell in vbavba hourmessage box vbscombo box vba excelcreate object vbavba numericexcel identify duplicates in columnevent project plan template excelvba excel count rowshow to insert a new row in excelvba for powerpointlearn macros excellearn macros in excel 2007 pdfvlookup a formula