0% found this document useful (0 votes)
23 views19 pages

Database NoteS 10 Notes

Uploaded by

s.kirushigan1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views19 pages

Database NoteS 10 Notes

Uploaded by

s.kirushigan1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

What is a database?

🠶 Collection of organized data can be defined as a


database.
Advantages of Databases
🠶 More efficient in retrieving information.
🠶 Easy to obtain copies.
🠶 Smaller physical space to store data.
🠶 Data analysis can be carried out effic iently.
🠶 Data can be shared.
🠶 Independence of data.
Features of a Database
🠶 Minimal data redundancy
Eliminate repeating data
🠶 Data consistency
By minimizing data redundancy, the same data being saved in various tables can be reduced or
prevented. This enables to maintenance of data consistency
🠶 Increases efficiency
Since database tables are properly organized, saving and reading data can be carried out
efficiently.
🠶 Increases accuracy
Store data are accurate
🠶 Increases validity
Data type is considered when we enter data into ay field in a database.
🠶 Security
Unauthorized access can be controlled by using a password and encrypting the database.
Data encrypting is translating data in unreadable format.
Electronic and Manual
Databases
Relational Database
🠶 A collection of fields related to one person or object is called a record.
🠶 A collection of records is called a data table.
🠶 A collection of related tables is called a relational database.
Primary Key
🠶 What is a Primary Key in a table?
A column (or a combination of columns) which enables to identify a record uniquely is called primary key.
🠶 Special attributes of a primary key
1. Should not be empty
2. No duplicate values (same values can not be repeated)

Student table
Admissio Full Name Class Date of Birth Subject
n No s
studyin
g
Composite Primary Key
🠶 What is Composite Primary Key?
The primary key which consists of two or more columns of a table uniquely identifies a record is called
Composite Primary Key.

Sport Table
Foreign Key
🠶 If a field of one table can be used to uniquely identify rows of another table, is called the foreign key.
🠶 This key builds connection of two tables.
Disadvantages of data duplication

1. Inability to select a primary key field to maintain identity of records.


2. Inability to analyze data properly
3. Reduced efficiency
4. Possibility to get inaccurate data is high.
5. Difficult to input data.
6. Possibility to make errors in deleting data.
7. Difficult to update data.
Database Management System(DBMS)
🠶 DBMSis consists with four Objects.
1.Tables
2.Queries
3.Forms
4.Reports

Database Object Definition


1.Tables Set of related Data.
2.Queries Information that can get by based on a condition or conditions.
3.Forms Formatted summaries of data that are suitable to print.
4.Reports User friendly interface for entering and viewing data.
Database Management System Software
Relationship Types in Relational Database
🠶 There are 03 Three types of relationships in Relation database

1. One-to-One (1:1)
2. One-to-Many(1:m)
3. Many-to Many (m:n)
One-to-One Relationship(1:1)
🠶 If only a row of a table is related to a row of another table, it is
called a one-to-one relationship.
One-to-Many Relationship(1:m)
🠶 If each record of a table is related to several records of the other
table, this is called a one-to-many relationship.
Many-to-Many Relationship(m:n)
🠶 If a record of a table is related to several records of another table
and if a record of that related table is related to several records of
the other table, there is a many-to-many relationship between
those two tables.

You might also like