Professional Documents
Culture Documents
Data Base
Data Base
Data Base
Data Integrity
Data integrity identifies
the quality of the data
Garbage out
Garbage in, garbage out
(GIGO) points out the
accuracy of a computer’s
output depends on the
Data Integrity
accuracy of the input is lost
Syntax of database
Fields Records
• Hold an individual piece of data • One full set of fields Often called a row
• Phone book example
• Are named descriptively, Often
• Smith, Joe, 123 Some Street, 412-555-7777
called a column
• Databases may have unlimited rows
• Phone book examples
• Name, address, e-mail, phone
Tables
number • One complete collection of records
• Fields may contain no data • bnDatabases may have thousands of
tables
The Hierarchy of Data
• A field is a combination of one or more related
characters and smallest unit of data user accesses
• Field name uniquely identifies each field
• Field size defines maximum number of
characters a field can contain
• Data type specifies kind of data field contains
Field types
Most DBMS use the same types
• Text fields store letters and numbers
• Numeric field store numbers
• Date and time field
• Logical field stores yes or no
• Binary field stores images or sounds
The Hierarchy of Data
• A record is a group of related fields
• A primary key uniquely identifies each record
• A data file is a collection of related records
Maintaining Data
Adding Modifying
Users add new records to a file
when they obtain new data records records
Users modify a record to correct
inaccurate data or update old data
When a record no longer is
needed, a user deletes it from a
Deleting
file records
Alphabetic/Numeric
Range check
check
Validation
Consistency check Completeness check
Validation compares
data with a set of
rules or values to find
out if the data is
Check digit Other checks
correct
Database Approach
Types of Database
There are different types of database, few types are discuss here,
Relational Database
Embedded Database
Graph Database
Hypertext Database
Relational Database
Data in a relational database is organized into tables. Each
table consists of rows and columns, where each row
represents a record, and each column represents a field or
attribute of that record.
Relationships between tables are established using keys. A
primary key uniquely identifies each record in a table, and
foreign keys establish relationships between tables by
referencing the primary key of another table.
Relational databases follow the principles of
normalization, which involves organizing data to minimize
redundancy and dependency. This ensures efficient storage..
Embedded Database