Professional Documents
Culture Documents
04 - Relational Data Model
04 - Relational Data Model
Pemodelan Data
Rizka Wakhidatus Sholikah
Outline
Logical
Physical
• Each tuple must have exactly one data value for an attribute
(multivalued attributes are not allowed)
• NULL value in the tuple is used when the value is not available
• Domain constraints
• Each attribute in a tuple is declared to be of a particular domain
• Key constraint and constraint on NULL values
• A key can either be a single attribute or a subgroup of attributes that can
recognize a particular tuple in a relation
• The constraint on NULL values defines whether an attribute is allowed to
carry Null value or not
• Entity Integrity Constraint
• A primary key of a tuple can never be NULL
• Relational Schema:
• A blueprint used in database design to represent the data to be entered
into the database and describe how that data is structured in relations
STUDENT(STUDENT_ID, STUDENT_NAME)
STUDENT_PHONE(STUDENT_ID, STUDENT_PHONE)
STUDENT(STUDENT_ID, STUDENT_LNAME_STUDENT_FNAME)
STUDENT_PHONE(STUDENT_ID, STUDENT_PHONE)
Customers(idCustomer, name)
Adresses(idAdresses, Address, idCustomer)
• In a group of 3-4
• Choose an application (can be any application)
• Suppose you are a database designer who will create a similar application
1. Identify, what entities are needed to build the application
2. Identify, the relationship that connects between entities
3. Identify the cardinality of each relationship
4. Identify the attribute that at least be owned by each entity
5. Create a conceptual, logical, and physical (mySQL as DBMS) ERD
6. Create a relational schema