Professional Documents
Culture Documents
Group 4 FDS Relational Database Design
Group 4 FDS Relational Database Design
Database
Design
Group 4
Ebarle, Edorot, Ermita, Felicitas,
Gaccion, Gaguan, Sandigan
Group 4
Joshua Felicitas
The rows, instead, are called tuples, and represent data sets applied to a
single entity to uniquely identify each item. Attributes are, therefore, the
characteristics of every individual tuple that help describe its unique
properties.
It stores only one piece of data about the object represented by the table
in which the attribute belongs.
Types of Attributes
1. Composite attribute
2. Multivalued attribute
3. Key attribute or primary attribute
4. Derived attribute
Types of Attributes
1. Composite attribute
is an attribute composed of several other simple attributes.
Types of Attributes
Types of Attributes
2. Multivalued attribute
is an attribute where more than one description can be
provided.
Types of Attributes
Types of Attributes
● Storing and sorting in contiguous block within files on tape or disk is called as sequential access file organization.
Advantages
1. It is simple to program and easy to design.
2. Sequential file is best use if storage space.
Disadvantages
3. Sequential file is time consuming process.
4. It has high data redundancy.
Types of File Organization
Types of File Organization
Advantages:
Disadvantages:
● Hash File Organization uses the computation of hash function on some fields of the records. The hash function's
output determines the location of disk block where the records are to be placed. When a record has to be received
using the hash key columns, then the address is generated, and the whole record is retrieved using that address.
1. This method doesn’t require sorting explicitly as the records are automatically sorted in the memory based on
hash keys.
2. Records are not dependant on each other and are not stored in consecutive memory locations so that prevents
the database from read, write, update, delete anomalies.
● B+ tree file organization is the advanced method of an indexed sequential access method. It
uses a tree-like structure to store records in File. Uses the same concept of key-index where
the primary key is used to sort the records. For each primary key, the value of the index is
generated and mapped with the record.
Advantages of B+ Trees
1. Using B+, we can retrieve range retrieval or partial retrieval. Traversing through the tree structure makes
this easier and quicker.
2. Since it is a balance tree structure, any insert/ delete/ update does not affect the performance.
Disadvantages of B+ Trees
● When the two or more records are stored in the same file, it is known as clusters. These files will have two or more
tables in the same data block, and key attributes which are used to map these tables together are stored only once.
● This method reduces the cost of searching for various records in different files.
1. This method is best suited when there is frequent request for joining the tables with same joining condition.
2. When there is a 1:M mapping between the tables, it results efficiently
3. This method is not suitable for very large databases since the performance of this method on them is low.
4. This method is not suitable for less frequently joined tables or tables with 1:1 conditions.
Types of File Organization
RELATIONA
L
DATABASE
INDEX
DATA INTEGRITY
What is Data Integrity
• Referential integrity: Acts as range control and null value allowance for foreign-key
to primary-key matchups.
● Improves performance of
the database by increasing
speed
Gracias
References
1. Code studio. (n.d.). Retrieved October 6, 2022, from https://www.codingninjas.com/codestudio/library/introduction-
to-file-organization
2. File organization in DBMS: Set 1. GeeksforGeeks. (2022, July 20). Retrieved October 6, 2022, from
https://www.geeksforgeeks.org/file-organization-in-dbms-set-1/
3. Farmer, K. (2021, July 10). Relational database indexes and when to use them. Medium. Retrieved October 6,
2022, from https://levelup.gitconnected.com/relational-database-indexes-and-when-to-use-them-fb2104cf7af4
4. Admin. (2022, September 19). File organization in DBMS: Gate notes. BYJUS. Retrieved October 6, 2022, from
https://byjus.com/gate/file-organization-in-dbms-notes/
5. OpenALG. (n.d.). Retrieved October 6, 2022, from https://alg.manifoldapp.org/read/introduction-to-database-
systems/section/c5a934d1-5720-401e-b90b-e6b01fb0aaa7#:~:text=Physical%20database%20design%20is
%20the,technology%20that%20will%20be%20used.
6. https://youtu.be/WmJuhKLQMA4
7. Drkušić, E. (2019, February 13). Denormalization: When, why, and how. Vertabelo Data Modeler. Retrieved October
6, 2022, from
https://vertabelo.com/blog/denormalization-when-why-and-how/?fbclid=IwAR3hwRnfVBnOHd2pR7_Aq_SJyBwYplr
R_fXWe8Io_9PUNcVvdQXkre5c3k4#:~:text=Denormalization%20is%20a%20strategy%20used,create%20instance
s%20of%20existing%20tables
8. Viva. (2020, December 14). 9 difference between normalization and Denormalization in SQL. Viva Differences.
Retrieved October 6, 2022, from https://vivadifferences.com/9-difference-between-normalization-and-
denormalization-in-sql-with-examples/?fbclid=IwAR382J8xq62_2sFQP_a-nsNY4jtnbCrCGKpxxtr_r-