International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
INFO 2102
DATABASE SYSTEMS
II
Dr. Lili Marziana Abdullah
International Islamic University Malaysia
Department of Information Systems
Kulliyyah of Information & Communication Technology
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
INFO 2102 – Database
Systems II
 Lecturer:
 Dr. Lili Marziana Abdullah
 Room: C5-42 or CITA office, level 3
 Email: lmarziana@iium.edu.my
 Consultation Times:
 Monday and Wednesday, 11.30 am – 12.50 pm
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Reminder…
 Regularly access INFO 2102 Course Repository.
 Textbook:
 Required:
Rosenzweig, B and E.S Rakhimov (2008), Oracle
PL/SQL by Example, Fourth Edition, Prentice Hall.
Patrick, J. (2009) SQL Fundamentals, Third Edition,
Prentice Hall.
 Online:
http://www.oracle.com/technetwork/index.html
 Submit copy of MC/valid excuse letter IMMEDIATELY
when you return to class. Pass to classmate for prolonged
absence. Delayed submission will not be accepted.
 Submit any assignment or exercise ON TIME. Delayed
submission will not be accepted.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Reminder…
 DO come ON TIME to the class. I can only tolerate 15
mins late. You will NOT BE ALLOWED to enter class if
later than 15 mins.
 DO observe the university rule on DRESS CODE and
CONDUCT as IIUM STUDENTS.
 DO NOT go in and out from class.
 DO NOT open any social networking websites, chatting
applications or any unrelated applications during the
class. You will be asked to leave if you violate this.
 DO NOT turn on your handphone during class (at least
keep it vibrate)
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Assessments
Class Participation 5
Lab Assignments/ Pop-up quiz 10
Lab Tests 10
Midterm 20
Group Project 15
Final Exam 40
TOTAL 100
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Course Outline
1 Review of Database Concepts
Creating and Managing Tables
2 Managing Constraints
Data Retrieval
3 Single-row Functions
Date-time Functions
4 Manipulating Data
Displaying Data from Multiple Tables
5 Conditional Expression & Group Functions
Subqueries
6 Lab Test 1
Views
7 Sequence & Index
MidTerm Exam
8 Mid Semester Break
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Course Outline
9 Introduction to PL/SQL
Writing Executable Statements
10 Procedures
11 Functions
12 Decision Structures
LOOP
13 Lab Test 2
Composite Data Types
14 Exception Handling and Cursors
15 Group Project Demonstration
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Review of
Database Concepts
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Objectives
 Review of Database Management System
(DBMS) and its functions
 Review of Client/Server Architecture
 Introduction to ORACLE
 Review of Relational database concepts
 Review of Integrity rules and types of
relationships
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database
 Shared collection of logically related data
(and a description of this data), designed to
meet the information needs of an
organization.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database
 Shared collection – can be used simultaneously
by many departments and users.
 Logically related - comprises the important
objects and the relationships between these
objects.
 Description of the data – the system catalog
(meta-data) provides description of data to
enable data independence.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
DBMS
 A software system that enables users to
define, create, and maintain the database
and that provides controlled access to this
database.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database application program
 A software program that interacts with the
database by issuing an appropriate request
(typically an SQL statement) to the DBMS.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Functions of a DBMS
 Data Storage, Retrieval, and Update.
 A User-Accessible Catalog.
 Transaction Support.
 Concurrency Control Services.
 Recovery Services.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Functions of a DBMS
 Authorization Services.
 Support for Data Communication.
 Integrity Services.
 Services to Promote Data Independence.
 Utility Services.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Personal Databases
 Typically maintained by the individual who owns it and
uses it
 Personal database management systems, such as
Microsoft Access and Visual Fox Pro, are usually stored
on a user’s desktop computer system or a client
computer.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Personal Databases
 A server is a computer that accepts and services requests
from other computers, such as client computers.
 A network is an infrastructure of hardware and software
that enables computers to communicate with each other.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Personal Database
File Server
( Database Files)
•Gets file requests
from clients
•Sends files to
clients
•Receives files from
clientsClient 1
( DBMS, Client
Application)
•Sends file requests from
clients
•Receives files from
server
•Adds, deletes, updates
data
•Sends files to clients
Client 2
( DBMS, Client
Application)
•Sends file requests from
clients
•Receives files from
server
•Adds, deletes, updates
data
•Sends files to clients
NETWORK
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
ORACLE
 An Oracle database is a collection of data treated as a
unit. The purpose of a database is to store and retrieve
related information.
 A database server is the key to solving the problems of
information management.
 In general, a server reliably manages a large amount of
data in a multiuser environment so that many users can
concurrently access the same data. All this is
accomplished while delivering high performance.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
ORACLE
 A database server also prevents unauthorized access and
provides efficient solutions for failure recovery.
 An Oracle database system can easily take advantage of
distributed processing by using its client/server
architecture. In this architecture, the database system is
divided into two parts: a front-end or a client, and a
back-end or a server.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
ORACLE
 The database has logical structures and physical
structures.
 Because the physical and logical structures are separate,
the physical storage of data can be managed without
affecting the access to logical storage structures.
 Oracle Database is the first database designed for
enterprise grid computing, the most flexible and cost
effective way to manage information and applications.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Overview of Application
Architecture
Client/Server Architecture
 Multiprocessing uses more than one
processor for a set of related jobs.
 Distributed processing:
 reduces the load on a single processor
 concentrate on a subset of related tasks
 improving the performance and capabilities of the system
as a whole.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Client Server Architecture
Database Server
•Gets data requests
from clients
•Adds, deletes,
updates and filter
data
Client 1
(Client Application)
•Sends data requests
•Receives results
•Sends new data
Client 2
(Client Application)
•Sends data requests
•Receives results
•Sends new data
NETWORK
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
Define the following terms:
 Entity
 Entity Set
 Attribute
 Tuple
 Domain
 Key
 Null
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Supermarket
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
Define the following terms:
 Entity – A person, place, item, event or a ‘thing’.
 Entity Set – A collection of related entities. For example, entity
INVOICE contains information about invoices.
 Attribute – A characteristic that describes an entity. For example,
invoice number and invoice date are attributes of entity INVOICE.
 Tuple – Another name for a row or a record. It contains attributes of
an entity.
 Domain – A set of all possible values for an attribute.
 Key – A minimal set of attributes, which uniquely defines an entity
in an entity set.
 Null – Unknown, unspecified, not known or not applicable value.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
What are two rules of relational database?
Two integrity of the relational database:
 Entity Integrity – Primary key attributes may not be null.
The primary key uniquely identifies an entity, so it
cannot be null and it must have a unique value.
 Referential Integrity – A foreign key may have a null
value or it may have a value that exists as a primary key
value in another table it references.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
What are different types of keys?
Types of keys:
 Primary key – A single attribute is used to uniquely identify
an entity in a table.
 Composite key – A combination of two or more attributes is
used as a unique identifier, also known as a composite
primary key.
 Surrogate key – An additional attribute is used in a table as a
primary key instead of a composite key.
 Foreign key – An attribute in a table that references a primary
key attribute in another table.
 Secondary key – A non-key attribute used in the search
operation.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
 Describe different types of relationships with examples:
There are three types of relationships:
 One-to-one (1:1)
One-to-one relationship exists between two entity sets if an entity in the
first entity set has only one matching entity in the second entity set, and
vice versa. For example, a manager and a department.
 One-to-many (1:M)
One-to-many relationship exists between two entity sets if an entity in the
first entity set has only one matching entity in the second entity set, but an
entity in the second entity set has many matching entities in the first entity
set. For example, an employee and a department.
 Many-to-many ( M:M or M:N)
Many-to-many relationship exists between two entity sets if an entity in the
first entity set has many matching entities in the second entity set, and vice
versa. For example, a student and a course.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
Define the following terms:
 Partial dependency
 Transitive dependency
 Normalization
 Data anomalies
 Cardinality
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
Define the following terms:
 Partial dependency – A non-key attribute in a table is dependent
on part of the composite key.
 Transitive dependency – A non-key attribute is dependent on
another non-key attribute.
 Normalization – A decomposition process to reduce data
dependencies and data anomalies.
 Data anomalies – A deletion anomaly that deletes information
about one entity while deleting information about another entity.
An insertion anomaly that does not allow insertion of an entity
unless information about another entity is known.
 Cardinality – The lower and upper limit information about a
relationship.
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Database Terminology Review
Determine the multiplicity for the following
relationships:
(a) Student and Course
(b) President and Country
(c) Staff and Dependent
(d) Order and Product
1:M
M:N
1:1
M:N
International Islamic University Malaysia
Kuliyyah of ICT – Department of Information Systems
Practice: ER Diagram
Salam Sdn Bhd is a small company dealing
with industrial applications of computers.
The company delivers various products to
its customers ranging from a single
application program through to complete
installation of hardware with customized
software. The company employs several
staff. Some staff are employed on long-term
basis, and others are temporary staff.
Draw an Entity Relationship Diagram to model the above scenario

More Related Content

DOCX
PROJECT PROPOSAL
PDF
Database v1
PPT
Database Systems Concepts, 5th Ed
PDF
E 5 development-of_a_data_management_system_for_stud
PDF
Analysis on Student Admission Enquiry System
PPTX
PPTX
Design and Implementation of Student Profile and Placement management system
DOCX
Chapter ii thesis
PROJECT PROPOSAL
Database v1
Database Systems Concepts, 5th Ed
E 5 development-of_a_data_management_system_for_stud
Analysis on Student Admission Enquiry System
Design and Implementation of Student Profile and Placement management system
Chapter ii thesis

What's hot (20)

PDF
Design of a prototype web based students’ record management system – webstrems
PDF
My thesis proposal
PDF
Jurnal e-learning management system using service oriented architecture
PDF
Heterogeneous data transfer and loader
PDF
Heterogeneous data transfer and loader
PDF
DOC
Resume- Senior Executive
PDF
Integrating mobile access with university data processing in the cloud
PDF
A model of recommender system for a digital library
DOCX
Office automation system report
DOC
Online student management system
DOCX
Student report
PDF
SOA-A GENERIC APPROACH FOR INTEGRATING LOOSELY COUPLED SYSTEMS WITH OTHER SYS...
PDF
SOA-A GENERIC APPROACH FOR INTEGRATING LOOSELY COUPLED SYSTEMS WITH OTHER SYS...
DOCX
Student database management system
PDF
WEB APPLICATION USING PHP AND MYSQL
DOC
Fee collection system
PDF
Proposal Automation of An Enrollment Process
DOC
Clothing Store and Management System
PDF
Sql based paperless examination system
Design of a prototype web based students’ record management system – webstrems
My thesis proposal
Jurnal e-learning management system using service oriented architecture
Heterogeneous data transfer and loader
Heterogeneous data transfer and loader
Resume- Senior Executive
Integrating mobile access with university data processing in the cloud
A model of recommender system for a digital library
Office automation system report
Online student management system
Student report
SOA-A GENERIC APPROACH FOR INTEGRATING LOOSELY COUPLED SYSTEMS WITH OTHER SYS...
SOA-A GENERIC APPROACH FOR INTEGRATING LOOSELY COUPLED SYSTEMS WITH OTHER SYS...
Student database management system
WEB APPLICATION USING PHP AND MYSQL
Fee collection system
Proposal Automation of An Enrollment Process
Clothing Store and Management System
Sql based paperless examination system
Ad

Viewers also liked (11)

PPTX
PRIMAVERA - Legislação Laboral em Angola
PDF
Trabalho em altura
PPT
Csc1100 lecture10 ch08_pt1
PDF
Escrita em família
PPT
Bases de datos y sistemas de informacion
PPTX
PRIMAVERA - Cabo Verde - RJEMPE
PDF
School of CEOs-monofolha
PPSX
Danny Maribao_Concept of culture
PPTX
Danny_Maribao_Lesson 1-self and socialization
PDF
Orienta tu negocio a las métricas
PPT
Seminario NFC: Presentación Claro Chile
PRIMAVERA - Legislação Laboral em Angola
Trabalho em altura
Csc1100 lecture10 ch08_pt1
Escrita em família
Bases de datos y sistemas de informacion
PRIMAVERA - Cabo Verde - RJEMPE
School of CEOs-monofolha
Danny Maribao_Concept of culture
Danny_Maribao_Lesson 1-self and socialization
Orienta tu negocio a las métricas
Seminario NFC: Presentación Claro Chile
Ad

Similar to Info 2102 l1 database review (20)

PPTX
Unit 2 oracle9i
PPTX
Introduction to Database (101) to Akashvani (202) const shortestPath = metroS...
PDF
20CS402 - DATABASE MANAGEMENT SYSTEMS NOTES
DOC
DBMS Practical File
PDF
DBMS 1.pdf from computer application for business
PPTX
Computer applications.pptx
PPTX
Introduction Of Data Base Management System Module 1.pptx
PPTX
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
PPT
27 fcs157al2
PPT
Db_05.ppt
PDF
database introductoin optimization1-app6891.pdf
PPTX
Introduction to Database
PDF
(Dbms) class 1 & 2 (Presentation)
PDF
Lee oracle
PPT
Notes on Understanding RDBMS2 for StudentsS.ppt
PDF
Finalproject cs
PPTX
library management system in SQL
PPTX
Relational data models in enterprise-level information system.
PPTX
System Analysis And Design
Unit 2 oracle9i
Introduction to Database (101) to Akashvani (202) const shortestPath = metroS...
20CS402 - DATABASE MANAGEMENT SYSTEMS NOTES
DBMS Practical File
DBMS 1.pdf from computer application for business
Computer applications.pptx
Introduction Of Data Base Management System Module 1.pptx
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
27 fcs157al2
Db_05.ppt
database introductoin optimization1-app6891.pdf
Introduction to Database
(Dbms) class 1 & 2 (Presentation)
Lee oracle
Notes on Understanding RDBMS2 for StudentsS.ppt
Finalproject cs
library management system in SQL
Relational data models in enterprise-level information system.
System Analysis And Design

More from IIUM (20)

PDF
How to use_000webhost
PDF
Chapter 2
PDF
Chapter 1
PDF
Kreydle internship-multimedia
PDF
03phpbldgblock
PDF
Chap2 practice key
PDF
Group p1
PDF
Tutorial import n auto pilot blogspot friendly seo
PDF
Visual sceneperception encycloperception-sage-oliva2009
PDF
03 the htm_lforms
PDF
Exercise on algo analysis answer
PDF
Redo midterm
PDF
Heaps
PDF
Report format
PDF
Edpuzzle guidelines
PDF
Final Exam Paper
PDF
Final Exam Paper
PDF
Group assignment 1 s21516
PDF
Avl tree-rotations
PDF
Week12 graph
How to use_000webhost
Chapter 2
Chapter 1
Kreydle internship-multimedia
03phpbldgblock
Chap2 practice key
Group p1
Tutorial import n auto pilot blogspot friendly seo
Visual sceneperception encycloperception-sage-oliva2009
03 the htm_lforms
Exercise on algo analysis answer
Redo midterm
Heaps
Report format
Edpuzzle guidelines
Final Exam Paper
Final Exam Paper
Group assignment 1 s21516
Avl tree-rotations
Week12 graph

Recently uploaded (20)

PDF
B C German Homoeopathy Medicineby Dr Brij Mohan Prasad
PDF
OSCE SERIES ( Questions & Answers ) - Set 5.pdf
PDF
Calcified coronary lesions management tips and tricks
PPTX
Post Op complications in general surgery
PPT
Rheumatology Member of Royal College of Physicians.ppt
PDF
MNEMONICS MNEMONICS MNEMONICS MNEMONICS s
PDF
04 dr. Rahajeng - dr.rahajeng-KOGI XIX 2025-ed1.pdf
PPTX
thio and propofol mechanism and uses.pptx
PDF
Transcultural that can help you someday.
PPTX
preoerative assessment in anesthesia and critical care medicine
PPTX
CARDIOVASCULAR AND RENAL DRUGS.pptx for health study
PPTX
Wheat allergies and Disease in gastroenterology
PPT
nephrology MRCP - Member of Royal College of Physicians ppt
PDF
OSCE SERIES ( Questions & Answers ) - Set 3.pdf
PPTX
HYPERSENSITIVITY REACTIONS - Pathophysiology Notes for Second Year Pharm D St...
PDF
The Digestive System Science Educational Presentation in Dark Orange, Blue, a...
PPTX
Reading between the Rings: Imaging in Brain Infections
PPTX
Neonate anatomy and physiology presentation
PPTX
09. Diabetes in Pregnancy/ gestational.pptx
PPTX
Approach to chest pain, SOB, palpitation and prolonged fever
B C German Homoeopathy Medicineby Dr Brij Mohan Prasad
OSCE SERIES ( Questions & Answers ) - Set 5.pdf
Calcified coronary lesions management tips and tricks
Post Op complications in general surgery
Rheumatology Member of Royal College of Physicians.ppt
MNEMONICS MNEMONICS MNEMONICS MNEMONICS s
04 dr. Rahajeng - dr.rahajeng-KOGI XIX 2025-ed1.pdf
thio and propofol mechanism and uses.pptx
Transcultural that can help you someday.
preoerative assessment in anesthesia and critical care medicine
CARDIOVASCULAR AND RENAL DRUGS.pptx for health study
Wheat allergies and Disease in gastroenterology
nephrology MRCP - Member of Royal College of Physicians ppt
OSCE SERIES ( Questions & Answers ) - Set 3.pdf
HYPERSENSITIVITY REACTIONS - Pathophysiology Notes for Second Year Pharm D St...
The Digestive System Science Educational Presentation in Dark Orange, Blue, a...
Reading between the Rings: Imaging in Brain Infections
Neonate anatomy and physiology presentation
09. Diabetes in Pregnancy/ gestational.pptx
Approach to chest pain, SOB, palpitation and prolonged fever

Info 2102 l1 database review

  • 1. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems INFO 2102 DATABASE SYSTEMS II Dr. Lili Marziana Abdullah International Islamic University Malaysia Department of Information Systems Kulliyyah of Information & Communication Technology
  • 2. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems INFO 2102 – Database Systems II  Lecturer:  Dr. Lili Marziana Abdullah  Room: C5-42 or CITA office, level 3  Email: lmarziana@iium.edu.my  Consultation Times:  Monday and Wednesday, 11.30 am – 12.50 pm
  • 3. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Reminder…  Regularly access INFO 2102 Course Repository.  Textbook:  Required: Rosenzweig, B and E.S Rakhimov (2008), Oracle PL/SQL by Example, Fourth Edition, Prentice Hall. Patrick, J. (2009) SQL Fundamentals, Third Edition, Prentice Hall.  Online: http://www.oracle.com/technetwork/index.html  Submit copy of MC/valid excuse letter IMMEDIATELY when you return to class. Pass to classmate for prolonged absence. Delayed submission will not be accepted.  Submit any assignment or exercise ON TIME. Delayed submission will not be accepted.
  • 4. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Reminder…  DO come ON TIME to the class. I can only tolerate 15 mins late. You will NOT BE ALLOWED to enter class if later than 15 mins.  DO observe the university rule on DRESS CODE and CONDUCT as IIUM STUDENTS.  DO NOT go in and out from class.  DO NOT open any social networking websites, chatting applications or any unrelated applications during the class. You will be asked to leave if you violate this.  DO NOT turn on your handphone during class (at least keep it vibrate)
  • 5. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Assessments Class Participation 5 Lab Assignments/ Pop-up quiz 10 Lab Tests 10 Midterm 20 Group Project 15 Final Exam 40 TOTAL 100
  • 6. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Course Outline 1 Review of Database Concepts Creating and Managing Tables 2 Managing Constraints Data Retrieval 3 Single-row Functions Date-time Functions 4 Manipulating Data Displaying Data from Multiple Tables 5 Conditional Expression & Group Functions Subqueries 6 Lab Test 1 Views 7 Sequence & Index MidTerm Exam 8 Mid Semester Break
  • 7. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Course Outline 9 Introduction to PL/SQL Writing Executable Statements 10 Procedures 11 Functions 12 Decision Structures LOOP 13 Lab Test 2 Composite Data Types 14 Exception Handling and Cursors 15 Group Project Demonstration
  • 8. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Review of Database Concepts
  • 9. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Objectives  Review of Database Management System (DBMS) and its functions  Review of Client/Server Architecture  Introduction to ORACLE  Review of Relational database concepts  Review of Integrity rules and types of relationships
  • 10. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database  Shared collection of logically related data (and a description of this data), designed to meet the information needs of an organization.
  • 11. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database  Shared collection – can be used simultaneously by many departments and users.  Logically related - comprises the important objects and the relationships between these objects.  Description of the data – the system catalog (meta-data) provides description of data to enable data independence.
  • 12. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems DBMS  A software system that enables users to define, create, and maintain the database and that provides controlled access to this database.
  • 13. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database application program  A software program that interacts with the database by issuing an appropriate request (typically an SQL statement) to the DBMS.
  • 14. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Functions of a DBMS  Data Storage, Retrieval, and Update.  A User-Accessible Catalog.  Transaction Support.  Concurrency Control Services.  Recovery Services.
  • 15. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Functions of a DBMS  Authorization Services.  Support for Data Communication.  Integrity Services.  Services to Promote Data Independence.  Utility Services.
  • 16. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Personal Databases  Typically maintained by the individual who owns it and uses it  Personal database management systems, such as Microsoft Access and Visual Fox Pro, are usually stored on a user’s desktop computer system or a client computer.
  • 17. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Personal Databases  A server is a computer that accepts and services requests from other computers, such as client computers.  A network is an infrastructure of hardware and software that enables computers to communicate with each other.
  • 18. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Personal Database File Server ( Database Files) •Gets file requests from clients •Sends files to clients •Receives files from clientsClient 1 ( DBMS, Client Application) •Sends file requests from clients •Receives files from server •Adds, deletes, updates data •Sends files to clients Client 2 ( DBMS, Client Application) •Sends file requests from clients •Receives files from server •Adds, deletes, updates data •Sends files to clients NETWORK
  • 19. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems ORACLE  An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information.  A database server is the key to solving the problems of information management.  In general, a server reliably manages a large amount of data in a multiuser environment so that many users can concurrently access the same data. All this is accomplished while delivering high performance.
  • 20. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems ORACLE  A database server also prevents unauthorized access and provides efficient solutions for failure recovery.  An Oracle database system can easily take advantage of distributed processing by using its client/server architecture. In this architecture, the database system is divided into two parts: a front-end or a client, and a back-end or a server.
  • 21. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems ORACLE  The database has logical structures and physical structures.  Because the physical and logical structures are separate, the physical storage of data can be managed without affecting the access to logical storage structures.  Oracle Database is the first database designed for enterprise grid computing, the most flexible and cost effective way to manage information and applications.
  • 22. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Overview of Application Architecture Client/Server Architecture  Multiprocessing uses more than one processor for a set of related jobs.  Distributed processing:  reduces the load on a single processor  concentrate on a subset of related tasks  improving the performance and capabilities of the system as a whole.
  • 23. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Client Server Architecture Database Server •Gets data requests from clients •Adds, deletes, updates and filter data Client 1 (Client Application) •Sends data requests •Receives results •Sends new data Client 2 (Client Application) •Sends data requests •Receives results •Sends new data NETWORK
  • 24. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review Define the following terms:  Entity  Entity Set  Attribute  Tuple  Domain  Key  Null
  • 25. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Supermarket
  • 26. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review Define the following terms:  Entity – A person, place, item, event or a ‘thing’.  Entity Set – A collection of related entities. For example, entity INVOICE contains information about invoices.  Attribute – A characteristic that describes an entity. For example, invoice number and invoice date are attributes of entity INVOICE.  Tuple – Another name for a row or a record. It contains attributes of an entity.  Domain – A set of all possible values for an attribute.  Key – A minimal set of attributes, which uniquely defines an entity in an entity set.  Null – Unknown, unspecified, not known or not applicable value.
  • 27. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review What are two rules of relational database? Two integrity of the relational database:  Entity Integrity – Primary key attributes may not be null. The primary key uniquely identifies an entity, so it cannot be null and it must have a unique value.  Referential Integrity – A foreign key may have a null value or it may have a value that exists as a primary key value in another table it references.
  • 28. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review What are different types of keys? Types of keys:  Primary key – A single attribute is used to uniquely identify an entity in a table.  Composite key – A combination of two or more attributes is used as a unique identifier, also known as a composite primary key.  Surrogate key – An additional attribute is used in a table as a primary key instead of a composite key.  Foreign key – An attribute in a table that references a primary key attribute in another table.  Secondary key – A non-key attribute used in the search operation.
  • 29. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review  Describe different types of relationships with examples: There are three types of relationships:  One-to-one (1:1) One-to-one relationship exists between two entity sets if an entity in the first entity set has only one matching entity in the second entity set, and vice versa. For example, a manager and a department.  One-to-many (1:M) One-to-many relationship exists between two entity sets if an entity in the first entity set has only one matching entity in the second entity set, but an entity in the second entity set has many matching entities in the first entity set. For example, an employee and a department.  Many-to-many ( M:M or M:N) Many-to-many relationship exists between two entity sets if an entity in the first entity set has many matching entities in the second entity set, and vice versa. For example, a student and a course.
  • 30. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review Define the following terms:  Partial dependency  Transitive dependency  Normalization  Data anomalies  Cardinality
  • 31. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review Define the following terms:  Partial dependency – A non-key attribute in a table is dependent on part of the composite key.  Transitive dependency – A non-key attribute is dependent on another non-key attribute.  Normalization – A decomposition process to reduce data dependencies and data anomalies.  Data anomalies – A deletion anomaly that deletes information about one entity while deleting information about another entity. An insertion anomaly that does not allow insertion of an entity unless information about another entity is known.  Cardinality – The lower and upper limit information about a relationship.
  • 32. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Database Terminology Review Determine the multiplicity for the following relationships: (a) Student and Course (b) President and Country (c) Staff and Dependent (d) Order and Product 1:M M:N 1:1 M:N
  • 33. International Islamic University Malaysia Kuliyyah of ICT – Department of Information Systems Practice: ER Diagram Salam Sdn Bhd is a small company dealing with industrial applications of computers. The company delivers various products to its customers ranging from a single application program through to complete installation of hardware with customized software. The company employs several staff. Some staff are employed on long-term basis, and others are temporary staff. Draw an Entity Relationship Diagram to model the above scenario