DBMS Assignment Supriya Singh
DBMS Assignment Supriya Singh
DBMS ASSIGNMENT
Supriya Singh
(2K20/UMBA/43)
In the above example, Electronics is a root node with two children, a TV and a portable
electronic device.
These two have other children who act as parents.
Example: TVs have children as tubes, LCDs, plasmas. For these three children, television
acts as a parent.
There are too many relationships.
In the above example, Project is a root node with two children, Project1 and Project2.
Project1 has three children and Project2 has two children.
There are a total of 5 children in Department A, Department B and Department C.
As mentioned that this model can have multiple parents, these are network-related
children.
Department B and Department C have two parents, Project 1 and Project 2.
3. Relational Data Model:
Relational Data Model was developed by EF Codd in 1970. There is no physical connection like a
hierarchical data model. The properties of the relational data model are shown below.
Uses tree structure for Uses directed graphs for Uses tables for organizing
organizing data. organizing data. data.
Access the data that is Access the data that is Access the data that is
complex and asymmetric. complex and complex and symmetric.
symmetric.
SQL NoSQL
Databases are categorized as Relational NoSQL databases are categorized as Non-
Database Management System (RDBMS). relational or distributed database system.
Have fixed or static or predefined schema. Have dynamic schema.
Display data in form of tables so it is known Display data as collection of key-value pair,
as table-based database. documents, graph databases or wide-column
stores.
Vertically scalable. Horizontally scalable.
Powerful language "Structured Query Collection of documents is used to query the data.
Language" to define and manipulate the It is known as unstructured query language that
data. varies from database to database.
Best suited for complex queries. Not so good for complex queries because these
are not as powerful as SQL queries.
Not best suited for hierarchical data Best suited for hierarchical data storage.
storage.
MySQL, Oracle, Sqlite, PostgreSQL and MS- MongoDB, BigTable, Redis, RavenDB, Cassandra,
SQL etc. are the example of SQL database. Hbase, Neo4j, CouchDB etc. are the example of
nosql database