Database Design and Development Week 1
Database Design and Development Week 1
AND DEVELOPMENT
SESSION 1
• Data - Raw fact or unorganized form. (Such as
alphabets, numbers or symbols)
• Information- Knowledge, Intelligence, a particular
piece of data with a special meaning of a function.
DATABASE
• worse when new items are frequently • improved backup and recovery services
• being inserted or deleted
• less data security • data security is very high
• data inconsistency • data consistency
PROS AND CONS OF USING ELECTRONIC
DATABASE
PROS CONS
• Data independence • Complexity
• Efficient data access • Size
• Data integrity and security • Cost of DBMS system
• Data administration • Additional hardware costs
• Concurrent access and crash recovery • Cost of conventions
• reduced application development time • Higher impact of failure
USES OF DATABASE
1. Hardware
2. Software
• DMBS
• Application software
3. People
• Users
• Practitioners
4. Data
DATABASE MANAGEMENT SYSTEM (DBMS)
• The system requirements define what software programs or hardware devices should
require to operate the program
• Software requirement- e.g. Functional Requirements
1. Searching requested details
2. Printing requested invoices
3. Comply administrative functions
• Identifying key field for tables is the main task of creating a database.
• A key is an attribute or set of attributes which helps to identify a row
(tuple) in a relation
• (table). Keys allow to find the relationship between two tables. Several
types of keys can be defined in DBMS as per those;
TYPES OF KEYS
• Super key
• A super key is a loop of single or multiple keys which identifies row in a table. A
super key may have additional attributes which are not needed for identification.
• Candidate key
• Candidate key is a set of attributes that uniquely identify tuples in a table. It is a
super key with no repeated attributes. The primary key should be selected from the
candidate keys. Every table must have at least a single candidate key.
• Primary key
• Primary key is the attribute or set of attributes which uniquely identify every tuple in
the table. The values of the primary key cannot be repeated. The table cannot have
more than one primary key.
• Alternate key
• A table can have multiple choices for a primary key but only one can be set as the
primary key. All the keys which are not set as primary key are known as alternate
keys.
• Composite key
• Composite key is a combination of two or more attributes which
uniquely identify rows in a table.
• Foreign key
• Foreign key is an attribute that create a relationship between two
tables. It acts as across reference between two tables and a foreign key
always references the primary key of another table.
NORMALIZATION