0% found this document useful (0 votes)
13 views3 pages

Difference Between OLTP and OLAP: No. Dbms Rdbms

Uploaded by

a1k1t11357
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Difference Between OLTP and OLAP: No. Dbms Rdbms

Uploaded by

a1k1t11357
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

No.

DBMS RDBMS

1) DBMS applications store data as file. RDBMS applications store data in a tabular
form.

2) In DBMS, data is generally stored in In RDBMS, the tables have an identifier


either a hierarchical form or a called primary key and the data values are
navigational form. stored in the form of tables.

3) Normalization is not present in DBMS. Normalization is present in RDBMS.

4) DBMS does not apply any security with RDBMS defines the integrity constraint for
regards to data manipulation. the purpose of ACID (Atomocity,
Consistency, Isolation and Durability)
property.

5) DBMS uses file system to store data, so in RDBMS, data values are stored in the
there will be no relation between the form of tables, so a relationship between
tables. these data values will be stored in the form
of a table as well.

6) DBMS has to provide some uniform RDBMS system supports a tabular structure
methods to access the stored of the data and a relationship between
information. them to access the stored information.

Difference between OLTP and OLAP


Parameters OLTP OLAP

It is an online transactional system. It OLAP is an online analysis and


Process
manages database modification. data retrieving process.

It is characterized by large numbers of It is characterized by a large


Characteristic
short online transactions. volume of data.

OLTP is an online database modifying OLAP is an online database


Functionality
system. query management system.

Method OLTP uses traditional DBMS. OLAP uses the data warehouse.

Insert, Update, and Delete


Query Mostly select operations
information from the database.

Tables in OLTP database are Tables in OLAP database are not


Table
normalized. normalized.
1) Super Key : A Super key is a group of single or multiple key which identifies
rows in a table.
2) Primary Key : Primary key is a Column or group of columns in a table that
uniquely identify every row in a table.
➢ Two row can’t have the same primary key value .
➢ Primary key field can not be null.
➢ Value of primary key column can never be modified or updated if any
foreign key refer to primary key.
3) Alternate Key : IT is a Column or group of column in a table that uniquely
identify in that table . A table can have Multiple choice for a primary key but
only can can be set as the Primary key. All the key Except Primary key is
Alternate key.
4) Candidate Key : IT is a Set of Attribute that Uniquely identify tuple in a table.
Candidate key is a Super key with no repeated Attribute. It is selected from
Super key .
5) Foreign Key : IT is Column that creates a relationship between two table the
purpose of it to maintain data integrity and allow navigation between two
difference instance of an Entity.
6) Composite Key : It is a Combination of two or more column that uniquely
identity row row in a table. The combination of column guarantees
uniqueness , through individually uniqueness in not guarantee Hence they
combined.

Factor Strong Entity Weak Entity

Definition A strong entity is A weak entity cannot be used


complete by itself and is independently as it is
not dependent on any dependent on a strong entity
other entity type. type known as its owner
entity.

Nature Strong entity is Weak entity is dependent in


independent in nature. nature. That means, it
depends on the strong entity.

Primary Strong entity has Weak entity does not have any
key primary key. primary key. But, it has a
partial discriminator key.

Key Strong entity has a key Weak entity does not have any
attribute attribute. key attribute.
1NF A relation is in 1NF if it contains an atomic value.

2NF A relation will be in 2NF if it is in 1NF and all non-key attributes are fully functional
dependent on the primary key.

3NF A relation will be in 3NF if it is in 2NF and no transition dependency exists.

BCNF A stronger definition of 3NF is known as Boyce Codd's normal form.

4NF A relation will be in 4NF if it is in Boyce Codd's normal form and has no multi-
valued dependency.

5NF A relation is in 5NF. If it is in 4NF and does not contain any join dependency, joining
should be lossless.

1. DDL (Data Definition Language):


• CREATE: Creates a new table or database.
• ALTER: Modifies an existing database object.
• DROP: Deletes an entire table, database, or other
objects.
• TRUNCATE: Removes all records from a table, deleting
the space allocated for the records.
2. DML (Data Manipulation Language):
• SELECT: Retrieves data from the database.
• INSERT: Adds new data to a table.
• UPDATE: Modifies existing data within a table.
• DELETE: Removes data from a table.
3. DCL (Data Control Language):
• GRANT: Gives users access privileges to the database.
• REVOKE: Removes access privileges given with the
GRANT command.
4. TCL (Transaction Control Language):
• COMMIT: Saves all changes made in the current
transaction.
• ROLLBACK: Restores the database to the last committed
state.
• SAVEPOINT: Sets a savepoint within a transaction.
• SET TRANSACTION: Places a name on a transaction.

You might also like