UT 1st RDBMS
UT 1st RDBMS
Relational Database Management System, RDBMS refers to a relational database plus supporting
software for managing users and processing SQL queries, performing backups/restores and
associated tasks.
RDBMS usually include an API so that developers can write programs that use them.
Typical RDBMS includes:
o Microsoft Access
o Microsoft SQL Server
o IBM DB2
o Oracle
o MySQL
Featurs of RDBMS
Components of RDBMS
Relational database components includes:
o Table
o Row
o Column
o Field
o Primary key
o Foreign key
1.Table
A Table is a basic storage structure of an RDBMS and consists of columns and rows. A table
represents an entity. For example, the E_DEPT table stores information about the departments of
an organization.
2.Row
A Column is a collection of one type of data in a table. Columns represent the attributes of
an object. Each column has a column name and contains values that are bound by the same type
and size. For example, a 'name' column in the table E_DEPT specifies the names of the
departments in the organization.
4.Field
A Field is an intersection of a row and a column. A field contains one data value. If there is no
data in the field, the field is said to contain a NULL value.
5.Primary Key
A Primary key is a column or a combination of columns that is used to uniquely identify each
row in a table. For example, the column containing department numbers in the E_DEPT table is
created as a primary key and therefore, every department number is different. A primary key must
contain a value. It cannot contain a NULL value.
6.Foreign Key
A Foreign key is a column or set of columns that refers to a primary key in the same table or
another table. You use foreign keys to establish principle connections between, or within, tables.
A foreign key must either match a primary key or else be NULL. Rows are connected logically
when required. The logical connections are based upon conditions that define a relationship
between corresponding values, typically between a primary key and a matching foreign key. This
relational method of linking provides great flexibility as it is independent of physical links
between records.
Advantages of RDBMS
RDBMS consists of following advantages:
1. Improved conceptual simplicity.
2. Easier database design, implementation, management, and use.
3. Ad hoc query capability (SQL).
4. Powerful database management system.
Disadvantages of RDBMS
RDBMS consists of following disadvantages:
1. Possibility of poor design and implementation.
2. Relational databases do not have enough storage area to handle data such as images, digital
and audio/video.
3. The requirement that information must be in tables where relationships between entities are
defined by values.
Roles and Responsibility of DBA
1. Software Installation and Maintenance
A DBA often collaborates on the initial installation and configuration of a new Oracle, SQL Server etc database. The system administrator sets up
hardware and deploys the operating system for the database server, and then the DBA installs the database software and configures it for use. As
updates and patches are required, the DBA handles this ongoing maintenance
5. Security
A DBA needs to know potential weaknesses of the database software and the company’s overall system and work to minimise risks. No system is
one hundred per cent immune to attacks, but implementing best practices can minimise risks.
6. Troubleshooting
DBAs are on call for troubleshooting in case of any problems. Whether they need to quickly restore lost data or correct an issue to minimise
damage, a DBA needs to quickly understand and respond to problems when they occur.
7. Authentication
Setting up employee access is an important aspect of database security. DBAs control who has access and what type of access they are allowed.
For instance, a user may have permission to see only certain pieces of information, or they may be denied the ability to make changes to
the system
Relational algebra refers to a procedural query language that takes relation instances as input and returns relation instances as
output. It performs queries with the help of operators. A binary or unary operator can be used. They take in relations as input
and produce relations as output. Recursive relational algebra is applied to a relationship, and intermediate outcomes are also
considered relations.
The fundamental operations of relational algebra are as follows −
Select
Project
Union
Set different
Cartesian product
Rename