Unit_1_Introduction toDatabases
Unit_1_Introduction toDatabases
System
Sushil Bhattarai
sushil.bhattarai@cps.edu.np
Name Height(ft)
Ram 4.9
Shyam 5.2
Hari 5.1
Database
• Data could be random.
• These data can be collected or stored in Database.
• Data gets updated, expanded and deleted.
• Database is a collection of structured and relevant data
stored in a computer system(generally called a server).
• Database is usually controlled by a Database Management
System(DBMS).
• Together, the data and the DBMS, along with the
applications that are associated with them, are referred to as
a database system, often shortened to just database
• Database System makes data management easy.
• Most of the application that deals with data has database
systems for storing and accessing data.
• A database has multiple tables to store data.
• Data are stored in tables in rows and columns.
Importance of Data
Data is organized more like a graph, and have more than one parent node
Accessing the data is also easier and fast as data can be related from multiple nodes
Maps many-to-many data relationships
Relational Model
Relationships are created by dividing data into entity and attributes
Relationship is maintained by storing a common field
Information related to a particular type is stored in rows of a table
Simpler than the hierarchical and network model
High performance
Object-oriented Model
• Data model is based on class representing real world objects.
• generic objects can be defined and then reused in numerous
application.
• Provides features of Object Oriented Design like class,
encapsulation, inheritance, polymorphism.
• storage of complex data structures that cannot be easily
stored using conventional database terminology.
• Contain active object servers which support both distribution
of data and distribution of work.
• Easier navigation
• Better concurrency control
Database Architecture
• uses programming languages to design a particular type of software for
businesses or organizations
• focuses on the design, development, implementation and maintenance of
computer programs that store and organize information for businesses,
agencies and institutions.
• database architect develops and implements software to meet the needs
of users.
• DBMS can be seen as either single tier or multi-tier classified as follows:
1. 1-tier architecture : involves putting all of the required components
on a single server
2. 2-tier architecture : based on Client Server architecture.
3. 3-tier architecture : mostly used in web applications and distributed
applications(presentation, application and data tier).
4. n-tier architecture : divides an application into three tiers: logic ,
presentation and Data tier.
Database Management System
• Software for creating and managing databases.
• Accessed by multiple users, from multiple locations, in a controlled manner.
• Can limit the data, a user can see, as well as how that user can view the data,
providing many views of the single data.
• Allows users to define the database, usually through Data Definition
Language(DDL)
• Allows users to insert, update, delete, and retrieve data from the database,
usually through Data Manipulation Language (DML).
• Provides controlled access to database including Security, Integrity,
Concurrency.
• Provides recovery control system, which restores the database to a previous
consistent state following a hardware or software failure .
• Eg : MSSQL, MySQL, PostgreSQL, Oracle, SQLite, IBM DB2.