Professional Documents
Culture Documents
Introduction To Databases and Database Design Process
Introduction To Databases and Database Design Process
Introduction To Databases and Database Design Process
decision making
• Good decision making keys to organizational
survival
Q. Which of the following statements is correct?
Account Account
Customer details
processing file
Loan
Customer details Loan file
processing
File Processing Approach
• Deposit Department
• Remittance Department
• Loan Department
• Notary Service
• Insertion Anomalies
• Deletion Anomalies
• Wasted Storage: Storing the same data multiple times consumes more storage space than necessary.
• Data Integrity: If updates are made to one instance of customer’s data but not others, it can lead to
discrepancies and impact the integrity of the data.
• Increased Maintenance: When changes need to be made to customer data, they have to be made in
multiple places, which increases the complexity of maintenance and the likelihood of errors.
• Security Concerns: Storing redundant data increases the surface area for potential security breaches. If
one set of data is compromised, it can lead to leaks in multiple systems.
Database Concept
Is a collection of
information that is
organized so that it
can be easily accessed,
managed and
updated.
Database
• It is collection of interrelated data stored
together without unnecessary redundancy to
serve multiple operations.
• Databases can store, manipulate and retrieve
data
• Used across wide range of organizations
• Single user to hundreds (or thousands) of users
Database vs. File System
• Problems inherent in File Systems make using a Database System
desirable
• File system
• Database
Database
• Integrated Data System
Application Programs/Queries
• It follows that although data is input once, can be used for several purposes.
• Database provides data for organization as whole, not just for individual departments.
• Organization of data into Database, rather than into separate files, encourages
integration of data.
• Because data held only once, easier to ensure that it’s up-to-date.
Database Design Process
• Main phases in Database Design Process
• Requirement's collection and analysis: Fact finding (interviews, observation,
looking at current data)
• Conceptual Database Design: Entities, ER modelling, function specs.
• Choice of DBMS
• Data Model mapping (logical database design): ER model 🡪 Relations,
Normalization
• Physical Database Design: Indexes, physical storage etc.
Database Users
Users are differentiated by way they expect to interact with system
• Application programmers – interact with system through DML.
• Sophisticated users – form requests in Database query language
• Specialized users – write specialized Database applications that do not fit into
traditional data processing framework (knowledge base and expert systems, CAD, etc)
• Naïve users – invoke one of permanent application programs that have been written
previously. E.g. people accessing database over web, bank tellers, clerical staff
Database Administrator
• Coordinates all activities of Database system
• Routine Maintenance
• ALL_USERS: Provides information about all users visible to the currently logged-in user and
accessible to the querying user.
• Example query: SELECT * FROM ALL_USERS;
• USER_USERS: Placeholder or potentially a custom view name that needs to verify its existence or
context in specific database environment.
• Example query: SELECT * FROM user_users;
Types of users
SELECT * FROM dba_users;
SELECT * FROM all_users;
• DBA_USERS SELECT * FROM user_users;