Week 1.5 Flashcards
Reasons for using ISA (sub classes)
1) To add descriptive attributes to the subclass
2) To Identify entities that participate in a relationship
ER Is used for what
Conceptual database design
3 Basic constructs of ER
1) entities
2) relationships
3) attributes (of entities and relationhsips)
Overlap Constraints:
determine whether the entities in the subclass collectively include all entities in the superclass
What is a characteristic of covering constraints?
1) Determine whether the entities in the subclass collectively include all superclass entities
2) Determine whether the subclasses have different entities in the class
3) Determine whether the subclasses have permission to contain the same class
1) Determine whether the entities in the subclass collectively include all superclass entities
Correct
In the example, all the contract/hourly employees belong to the master employees entity which explains covering constraints.
Overlapping Constraints
determine whether two subclasses are allowed to contain the same class entity
Aggregation
Allows relationships with relationship sets
Duration
ternary relationship
ternary relationship
A ternary relationship is when three entities participate in the relationship.
A university database records professors that taught subjects in courses. Based on the entities participating in the relationship, what kind of relationship is this?
1) Ternary relationship
2) Binary relationship
Ternary relationship
What does ISA mean
It is a member of a higher class
In a Database the Number of Rows are called
cardinality = count(*)
In a Database the Number of Fields are called
degree (id,fname,etc)
If you would like to insert a new company tuple in your corporation’s table, what is the most likely correct command?
1) INSERT INTO COMPANY ( NAME, CITY, STATE)
(“ASU CORP”, “TEMPE”, “AZ”)
2) INSERT INTO COMPANY
VALUES( 3, “ASU CORP”, “TEMPE”, “AZ”)
3) INSERT INTO COMPANY (NAME, CITY, STATE)
VALUES (“ASU CORP”, “TEMPE”, “AZ”)
INSERT INTO COMPANY (NAME, CITY, STATE)
VALUES (“ASU CORP”, “TEMPE”, “AZ”)
Integrity Constraints
Integrity constraints ensure that the data insertion, updating, and other processes have to be performed in such a way that data integrity is not affected.