This document provides an overview of basic concepts in databases including:
1. It defines what a database is and examples of databases like a phone book. It also defines what a database refers to in computers as a collection of organized data.
2. It explains the functions of a database to store, delete, organize, use and present data. It provides an example of data stored in an Access database.
3. It defines what a DBMS is and its purpose to create, manage and query databases. It lists examples of common DBMS like Microsoft Access, MySQL, and Oracle.
4. It outlines different database models including hierarchical, network, object-oriented, and relational models and provides examples
This Presentation explains about Firewalls, Viruses and Antiviruses. I hope this presentation may help you in understanding about Viruses, Firewall and Antiviruses Software.
This Presentation explains about Firewalls, Viruses and Antiviruses. I hope this presentation may help you in understanding about Viruses, Firewall and Antiviruses Software.
Indexes: The Second Pillar of Database Wisdomgisborne
The most important things that most developers don't know about database index design.
If you think designing the indexes in your database is a simple matter, you have a lot to learn!
Download Complete Material - https://www.instamojo.com/prashanth_ns/
This RDBMS (Relational Database Management System) contains 9 Units and each unit contains 40 to 50 slides in it.
Contents…
• Define a Database Management System
• Describe the types of data models
• Create an entity-relationship model
• List the types of relationships between entities
• Define a Relational Database Management System
• Describe the operators that work on relations
• Identify tips of logical database design
• Map an ER diagram to a table
• Describe data redundancy
• Describe the first, second, and third normal forms
• Describe the Boyce-Codd Normal Form
• Appreciate the need for denormalization.
Overview of Data Base Systems Concepts and ArchitectureRubal Sagwal
Data
Data Hierarchy
Introduction of Database
DBMS
Characteristics of database approach
Advantages of DBMS
Data models
Schemas, Three schema architecture:
-The external level
-The conceptual level and
-The internal level.
Data Independence
Database languages and Interfaces
Roles of Database Administrator
A database management system (DBMS) is a collection of programs that enables users to create and maintain databases and control all access to them. The primary goal of a DBMS is to provide an environment that is both convenient and efficient for users to retrieve and store information.
Prerequisies of DBMS
Course Objectives of DBMS
Syllabus
What is the meaning of data and database
DBMS
History of DBMS
Different Databases available in Market
Storage areas
Why to Learn DBMS?
Peoples who work with Databases
Applications of DBMS
2. Database definition
• In general, a database is anything that stores
data
– Example, a phone book which store name &
phone number
• In computer, a database refers to
– collection of organized data to be accessed,
retrieved and used
2
3. Function of a database in general
• Allow anyone to:
– store (add)
– delete (remove)
– organize
– use
– present data
3
5. What is a DBMS?
• Database Management System is a software
that store and manage database
• It allows to:
• create databases
• insert, update and delete data
• sort and query data
• create forms and reports
5
6. Examples of DBMS
• Microsoft Access, MySQL, PostgreSQL, SQL Server,
Oracle, dBASE, Clipper and FoxPro
• Examples of DBMS applications:
Automated teller machine
Computerized Library System
Flight Reservation System
Staff Information System
Students System
6
7. DBMS Models
• DBMS Model describe:
– rules and standards on how database organize data
– defines how users view organization of data
• Common models include: (remember)
– Hierarchical model
– Network model
– Object-oriented model
– Relational model
7
8. Hierarchical Model
• organizes data in a tree structure
• all access to data starts at the top of the hierarchy
and moves downward
– for example, from customer to orders, vendor to
purchases, etc
• there is a hierarchy of parent and child data
segments
• support one to many relationship
8
9. Network Model
• Similar like hierarchical model but
– permit more than one parent per child
– thus permit the modeling of many-to-many relationships in data
• Organizes data using two fundamental constructs, called
records and sets
• Records contain fields , sets define one-to-many
relationships between records: one owner, many
members
• Very flexible
• Not widely use
9
10. Object Oriented Model
• based on a collection of objects
• an object contains:
– values stored in instance variables within the object
– bodies of code called methods that operate on the object
• for example, consider an object representing a bank account
– The object contains instance variables number and balance.
– The object contains a method pay-interest which adds interest to the balance.
– Under most data models, changing the interest rate entails changing code in
application programs.
– In the object-oriented model, this only entails a change within the pay-
interest method.
• Diverse structures
• Can execute complex analytical and data manipulation operations
to search and transform multimedia and other complex objects
10
11. Relational Model
• Data is stored in two-dimensional tables (rows and
columns)
• Widely used
• Example, Microsoft Access and MySQL
11
12. Data Hierarchy
Definition- systematic organization of data, often in a hierarchical
form
Database File Database File: Physical file stored in a storage media.
Example: StudentDB.accdb
Table Table: Contain information on a specific subject / topic.
Example: Student, Courses
Record: Contain information on single data item in a
Record
table. Example: information about a student. Also known
as row in a table.
Field Field: Contain a specific piece of information within a
record. Example: Student Name, Student IC. Also known
as column in a table. 12
14. Relational database
• stores data in tables
• tables are organized into columns, and each
column stores one type of data
• data for a single “instance” of a table is stored as a
row
14
15. What is RDBMS?
• RDBMS is a DBMS which manages a relational
database
– Example, Microsoft Access and MySQL
• Data is structured in tables, records and fields
• Each table consists of rows (records)
• Each table row consists of one or more fields
(columns)
• RDBMS store the data into collection of tables,
which might be related by common fields
15
16. Advantages of RDBMS
• Minimum data redundancy
• Data consistency - less likelihood of incorrect or
incomplete data being stored or used
• Integrated data – data is organized in logical
relationship thus making it easy to relate data items
• Data sharing – allows users from different department
to share data
• Data accessibility – allows users to access or retrieve
in a flexible manner
• Uniform security, privacy and integrity control – db
administrator can establish control for accessing,
updating and protecting the data
16
17. Categories of RDBMS
• Personal database
– Best in single-user environment (up to 10 users)
– Example: Microsoft Access
• Client/Server database
– Support multiple users in a network environment
– Run in a server, client can request data from the server
& query, update & report locally
– Example: SQL Server
17
18. Master table
• Contains a primary key (must be unique as a
password)
• Normally is a table that lists the properties of
things that have some permanence and used
many times in other tables
• Example customers, teachers, students and
subjects offered
18
19. Transaction table
• Records some kind of interaction or event between
master tables
• Transaction tables are typically used in posting
operations or as lookup tables
• Example,
– In Student Information System, the actual classes taken by
students are transactions because they record specific
interactions between students and teachers
– In an eCommerce software the shopping cart tables are all
transaction tables, they record the purchase of items by
customers
19
20. Primary Key
• Field, or fields, which by itself, or together
uniquely identify each row in a table
• Used to match up records in different tables
• Usually indexed
• Help to define the relationships between tables
20
21. Primary Key
• Requirement: must be unique and cannot be
empty or null
• Functions:
• Used to associate data from multiple tables
• Prevent duplicate record
• Control the order of records
• Faster to locate records
• Possible to have 2 or more fields as primary key in
a table –this is called composite key
21
22. Foreign Key
• Same data field and type which is linked to a
primary key in a corresponding table
• Example:
– In SalesTransaction table below, CustomerID would be the
Foreign Key field
– The Foreign Key is used to look up the CustomerID in the
Customer table where the CustomerID is the primary key
Customer table SalesTransaction table
CustomerID (PRIMARY KEY) SalesID
CustomerName SalesDate
CustomerID (FOREIGN KEY) 22
23. Relationships
• Relationships establishes the association between
common fields in two tables
• Common field links two tables to each other, thus
ensuring connection between the data in the
tables within the same database
• REMEMBER: Access uses related tables - one table
can find and use data in another table
23
24. What will we learn in this subject?
• Access objects – Table, Query, Form, Report,
Macro
• Switchboard (is also a form)
• SQL
24
Editor's Notes
U can insert an email. Collection of data. ex.:
Not all people. Present data, ex. cgpa
DBMS; ex, atm
Example:An organization had records of employees in a table (entity type) called "Employees". In the table there would be attributes/columns such as First Name, Last Name, Job Name and Wage. The company also has data about the employee’s children in a separate table called "Children" with attributes such as First Name, Last Name, and date of birth. The Employee table represents a parent segment and the Children table represents a Child segment. These two segments form a hierarchy where an employee may have many children, but each child may only have one parent.
A record may be an owner in any number of sets, and a member in any number of setsBranches can be connected to multiple nodesThe network model is able to represent redundancy in data more efficiently than in the hierarchical model