University of Melbourne · FACULTY OF INFORMATION TECHNOLOGY

INFO90002 Chap.3 ER Diagrams and Cardinality

- one subject, every graph, every model, every mark
5 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 3 of 12 · INFO90002

ER Diagrams and Cardinality

ER Diagrams and Cardinality turns keys and identifiers, cardinality and participation and associative entities into executable reasoning. The chapter's practical target is to justify every relationship constraint with a business rule, so every explanation should connect syntax to program state, control flow and observable output.

Treat keys and identifiers as a precise program object, not a loose label.

Identify its value or responsibility before execution, then trace what can read it, change it or depend on it. This makes hidden state changes visible before they become debugging guesses.

Use cardinality and participation to explain the program's next move. Work through one representative input by hand and name the branch, iteration or call that follows.

If the trace cannot be stated, the code may run by accident rather than by understood design.

Bring in associative entities as the test of structure.

Compare normal, boundary and invalid inputs; state the expected behaviour first; then use the mismatch between expectation and result to localise the defect.

For the application — justify every relationship constraint with a business rule — write the smallest complete example that exposes the rule.

Explain why it works, what would break it and how the program should signal or recover from that failure.

Before running a ER Diagrams and Cardinality example, make a trace table with the important state before and after each operation. Include the value associated with keys and identifiers, the control decision governed by cardinality and participation and the output or object affected by associative entities.

The table turns an unexplained result into a sequence that can be tested one transition at a time.

Test three inputs: an ordinary case, a boundary case and an invalid case. State the expected result for each before execution, then compare it with what the program actually does.

A useful test of cardinality and participation isolates one rule; a test that changes several conditions at once cannot tell you which condition caused the failure.

Practise explaining the solution without reading the code.

For INFO90002, name the data representation, the control flow, the responsibility of each function or class and the reason the chosen design supports justify every relationship constraint with a business rule.

This rehearsal is especially important when a written test or interview asks why the program works rather than whether it produces one correct output.

A complete ER Diagrams and Cardinality response should make the task visible before the detail: identify what must be decided, define the relevant terms, connect the evidence to cardinality and participation, and use associative entities to test the result.

The final sentence should answer the question actually asked rather than merely repeat the topic.

The controlling limit is specific: Diagram notation cannot resolve an ambiguous requirement.

Keep that limit beside the worked example, because it separates a careful INFO90002 answer from one that sounds confident but claims more than the task or evidence supports.

For revision, retrieve keys and identifiers, cardinality and participation and associative entities without notes, explain their relationship aloud, then complete a changed version of the application: justify every relationship constraint with a business rule.

Record the first point at which your reasoning fails and repair that move before attempting another case.

In this chapter

What this chapter covers

  • 01

    keys and identifiers

  • 02

    cardinality and participation

  • 03

    associative entities

  • 04

    Applying keys and identifiers

  • 05

    Limits of cardinality and participation and associative entities

Worked example · free

Worked example: ER Diagrams and Cardinality

Q [4 marks]. Build a response that will justify every relationship constraint with a business rule. Give keys and identifiers, cardinality and participation and associative entities separate jobs, then keep the final claim inside the chapter boundary. This is AskSia-authored practice, not a University question or marking scheme.
  • 1Use keys and identifiers to fix the object, category or condition being analysed in ER Diagrams and Cardinality.
  • 1Use cardinality and participation to write the mechanism or rule that changes the starting condition.
  • 1Use associative entities for a consequence, counter-case or check that could alter the result.
  • 1Give the requested conclusion without crossing this limit: Diagram notation cannot resolve an ambiguous requirement.
The response assigns keys and identifiers to the object being analysed, cardinality and participation to the mechanism or rule, and associative entities to a consequence or check. Those jobs make the reasoning inspectable rather than a list of terms. The final claim remains subject to this boundary: Diagram notation cannot resolve an ambiguous requirement.
Sia tip — Translate every cardinality and participation mark into a business sentence using ‘must’ or ‘may’, and name the identifier. If the requirement remains ambiguous, record the question; drawing an associative entity cannot manufacture a missing rule.
Glossary

Key terms

connectivity vs cardinality (and optional/mandatory participation)
Connectivity names the relationship type such as one-to-many, cardinality states minimum and maximum participation counts, and optional or mandatory participation indicates whether the minimum is zero or one. In this chapter, use the concept when you justify every relationship constraint with a business rule.
conceptual, logical and physical design (the database development lifecycle)
Conceptual design models business entities and relationships independently of technology, logical design translates them into a data model and constraints, and physical design specifies storage, indexes and implementation details. In this chapter, use the concept when you justify every relationship constraint with a business rule.
Crow's Foot vs Chen notation
Crow's Foot notation shows cardinality with line-end symbols around entity boxes, whereas Chen notation represents entities, attributes and relationships with rectangles, ovals and diamonds. In this chapter, use the concept when you justify every relationship constraint with a business rule.
FAQ

ER Diagrams and Cardinality FAQ

What is the main task in ER Diagrams and Cardinality?

Justify every relationship constraint with a business rule.

How do keys and identifiers and cardinality and participation work together?

Use keys and identifiers to establish the object or condition, then use cardinality and participation to explain how it changes the outcome being analysed.

What must a INFO90002 answer qualify here?

Diagram notation cannot resolve an ambiguous requirement.

How should I revise ER Diagrams and Cardinality?

Retrieve keys and identifiers, cardinality and participation and associative entities, apply them to a changed case, and correct the first point where the evidence no longer supports the conclusion.

Study strategy

Exam move

Reconstruct the relationship among keys and identifiers, cardinality and participation and associative entities; complete the chapter application without notes; then test the result against this limit: Diagram notation cannot resolve an ambiguous requirement.

Working through ER Diagrams and Cardinality in INFO90002? Sia is AskSia’s AI Information Technology tutor — ask any INFO90002 ER Diagrams and Cardinality question and get a clear, step-by-step explanation grounded in how INFO90002 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 126 of your University of Melbourne subjects - and 1,000+ Bibles across every Australian university.
Sia - your INFO90002 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works