This assignment is based on lecture 5 (chapter 14). o Submit your own work on time. No credit will be given if the assignment is submitted after the due date. o Note that the completed assignment should be submitted in .doc, .docx, .rtf or .pdf format only. o In MCQs, if you think that your answer needs more explanation to get credit then please write it down. o You are encouraged to discuss these questions in the Sakai forum. (1) Every time attribute A appears, it is matched with the same value of attribute B, but not the same value of attribute C. Therefore, it is true that: A. A!B B. A!C C. A!(B, C) D. (B,C) ! A ANS: A (2) A table is in 2NF if the table is in 1NF and what other condition is met? A. There are no functional dependencies. …show more content…
Another difficulty using relations that have redundant information is the problem of update anomalies. These can be classified as Insertion, Deletion or Modification anamolies. (7) Describe the concept of full functional dependency and describe how this concept relates to 2NF. Provide an example to illustrate your answer. (Review question 14.10 from the book) ANS: Full functional dependency indicates that if A and B are attribute of a relation, B is fully functional dependent on A if B is functionally dependent on A, but not on any proper subset of A. Second Normal Form (2NF) is a relation that is in first normal form and every non-primary key attribute is fully functionally dependent on the primary key. (8) Describe the concept of transitive dependency and describe how this concept relates to 3NF. Provide an example to illustrate your answer. (Review question 14.11 from the book) ANS: Transitive dependency A condition where A, B and C are attributes of a relation such that if A!B and B!C, then C is transitively dependent on A via B (provided that A is not functionally dependent on B or C) Third Normal Form (3NF) is a relation that is in first and second normal form in which no Non- Primary key attribute is transitively dependent on the primary key. (9) Solve exercise 14.14 (a, b, c) on page 390 from the course text book (5th edition). For the 4th edition users, the question is 13.14 (a,b,c) (a) ANS: The functional dependencies : Patient No ! Full Name Ward
Which of the following defines a relationship in which each occurrence of data in one entity
The two parts in this assignment will contribute equally to your grade and will be evaluated separately.
A relational database is a database that consists of a collection of tables with columns showing entities, and rows showing data. This type of database uses a primary key and foreign key. The foreign key in another table will point to the primary key of a table, and this is how tables can relate to each other. This permits for one-to-one, one-to-many, and many-to-many relationship between the data. An advantage of relational databases includes the ease of adding or modifying new tables and entities without needing to change the structure of the database already in place. Relational database have many features, including indexing, setting data type, and setting validation tests, all these help to ensure data integrity.
1.4 For the tables you created in Review Question 1.3, what are the primary keys of each table? Do you think that any of these primary keys could be surrogate keys?
The challenging part was actually trying to understand what will be the best way to break a relation down into multiple relations without jeopardizing the integrity of the data at the same time. As I mention before it is not hard to do it but you really have to know how to do it.
There are three stages to normalization, 1st NF, 2nd NF, and 3rd NF. In the 1st NF stage must ensure that the table has no multivalued attributes. If there are the table should be broken down into separate tables so that there are no multivalued attributes. The 2nd NF stage requires that we break the tables down even more to ensure that all attributes and functional dependency entirely to the primary key and has met all requirements of the 1st NF. Then, and only then will it be considered to have met 2nd NF requirements. To transform the database to 3rd NF you must identify the primary key in the 2nd NF table. Then we must identify functional dependencies in the relationship to ensure there are no transitive dependencies. These types of dependencies can cause insertion, deletion, and update
Hence, this session has enhanced my understanding about normalization and how essential to create a data that is well organized with the relationships clearly defined and established between the tables (based on the business rules) in order to eliminate data redundancy and inconsistency.
Save a copy of your assignments: You may need to re-submit an assignment at your instructor’s request. Make sure you save your files in accessible location.
2NF (Second Normal Form): The relation should not have any partial dependencies; part of the primary key should not identify a subset of attributes in the same table. The relation must be in 1NF before it can be in 2NF [12]
Use relationships to manage dependencies. Many assets have dependencies, or requirements that are beyond the asset itself in order to be complete, to work, or to build. For example a Build or an Implementation asset type might have dependencies that are required for the asset to be complete or valid. Assets may require certain binary and jar files that are dependencies for the build or implementation.
When it comes to the data model, there exists a relationship that has three different representations for the reason that database requires the relationship between the tables. It goes hand-in-hand with one another without the relationship the tables would have no purpose. The information cannot be repetitive in order for the each table to work and provide the specific database that is related to the information. In different ways the tables in the Huffman Trucking Fleet Truck database
the instances of a subtype do not participate in a relationship that is unique to that subtype.
| (TCO A) Projects have specific attributes. Which of the following is not an attribute?
We will assume that Number Name where name is not unique (i.e., there may be more than one “John Smith”, each with a different student number). Then the functional dependencies are:
4) Designate relationships and attributes from the source data. Relationships are derived from ingredients, pill imprint information