Lesson 2
Lesson 2
Lesson 2
Examples:
Phone Book
Address Book
A database typically consists of:
Records (rows) • Collection of related fields in a database (all the fields for
one person, for example)
Using this operation, a user can ask for data to be retrieved from multiple
files or databases without having to go to each one separately.
The project operation is used to create a subset of the columns contained in the
temporary tables created by the select and join operations.
Just as the select operation creates a subset of records that meet stated criteria,
the project operation creates a subset of the columns, or fields, that the user
wants to see.
Using a project operation, the user can decide not to view all of the columns in
the table but instead view only those that have the data necessary to answer a
particular question or construct a specific report.
Because of the widespread use of relational models, an abundance of commercial
products exist to create and manage them.
Leading mainframe relational database applications include Oracle 10g from
Oracle Corp. and DB2 from IBM.
The most commonly used database application for the PC is Microsoft Access.
Object-Oriented Structure
The object-oriented model is considered one of the key technologies of a new
generation of multimedia Web-based applications.
An object consists of data values describing the attributes of an entity, plus the
operations that can be performed upon the data.
The object-oriented model also supports inheritance ; that is, new objects can be
automatically created by replicating some or all of the characteristics of one or
more parent objects.
The data redundancy is minimal in the centralized database. All the data is
stored together and not scattered across different locations. So, it is easier to
make sure there is no redundant data available.
Since all the data is in one place, there can be stronger security measures around
it. So, the centralized database is much more secure.
There is a lot of data access traffic for the centralized database. This may
create a bottleneck situation.
Since all the data is at the same location, if multiple users try to access it
simultaneously it creates a problem. This may reduce the efficiency of the
system.
One-to-one:
database relationships are probably the least common.
Advantages
Accuracy:
Data is stored just once, eliminating data duplication.
Flexibility:
Complex queries are easy for users to carry out.
Collaboration:
Multiple users can access the same database.
Trust:
Relational database models are mature and well-understood.
Cloud Database: A type of database where data is stored in a virtual
environment and executes over the cloud computing platform. It provides
users with various cloud computing services (SaaS, PaaS, IaaS, etc.) for
accessing the database. There are numerous cloud platforms, but the best
options are:
Amazon Web Services(AWS)
Microsoft Azure
ScienceSoft
Google Cloud
SQL, etc.
Disadvantages?
Hierarchical Databases: It is the type of database that stores data in the
form of parent-children relationship nodes. Here, it organizes data in a
tree-like structure.
Data get stored in the form of records that are connected via links. Each
child record in the tree will contain only one parent. On the other hand,
each parent record can have multiple child records.
Database Management System
Database Management System (DBMS) is a software for storing and
retrieving users' data while considering appropriate security measures
A general-purpose DBMS allows users to create their own databases as
per their requirement.
MySQL
Oracle
SQL Server
IBM DB2
PostgreSQL
Amazon Simple DB (cloud based) etc.
Advantages of DBMS
Improved data sharing
Simple to use
Less complex.
No need of specialist.
Features of Traditional File System
It stores data in a group of files.