Adelaide University · FACULTY OF INFORMATION TECHNOLOGY

INFO 1012 Chap.4 Databases and Information Models

- one subject, every graph, every model, every mark
5 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 4 of 8 · INFO 1012

Databases and Information Models

Define entity

The course material gives this chapter a concrete anchor: Database concepts sit beside execution to show how persistent structure differs from running state. That entity anchor controls how relationship is explained and how constraint is tested in changed practice.

Databases and Information Models turns entity, relationship and constraint into executable reasoning.

The chapter's practical target is to translate an information need into entities, keys, relationships and constraints, so every explanation should connect syntax to program state, control flow and observable output.

Treat entity as a precise program object, not a loose label. Identify the value or responsibility of entity before execution, then trace what can read it, change it or depend on it.

This makes state changes visible before they become debugging guesses.

Use relationship to explain the program's next move. Work through one representative relationship input by hand and name the branch, iteration or call that follows. If the relationship trace cannot be stated, the code may run by accident rather than by understood design.

Trace relationship

Bring in constraint as the test of structure.

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

For the application — translate an information need into entities, keys, relationships and constraints — write the smallest complete example that exposes the rule.

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

Before running an example involving entity, make a trace table with the important state before and after each operation. Include the value associated with entity, the control decision governed by relationship and the output or object affected by constraint.

The entity 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 constraint result for each before execution, then compare it with what the program actually does.

A useful test of relationship isolates one rule; changing several conditions at once cannot reveal which condition caused the failure.

Test with constraint

Practise explaining the solution without reading the code.

For info1012, name the data representation, the control flow, the responsibility of each function or class and the reason the chosen design supports translate an information need into entities, keys, relationships and constraints.

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

A complete response should make the task visible before the detail: identify what must be decided, define the relevant terms, connect the evidence to relationship, and use constraint to test the result.

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

The controlling limit is specific: A diagram that omits grain or optionality cannot protect data quality.

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

For revision, retrieve entity, relationship and constraint without notes, explain their relationship aloud, then complete a changed version of the application: translate an information need into entities, keys, relationships and constraints.

Record the first failed relationship reasoning move and repair it before attempting another case.

In this chapter

What this chapter covers

  • 01

    entity

  • 02

    relationship

  • 03

    constraint

  • 04

    Applying entity

  • 05

    Limits of relationship and constraint

Worked example · free

Model course enrolment

Q. AskSia-authored practice. A spreadsheet repeats student details on every enrolment row. What should a database model do?
  • 1Separate student and enrolment entities.
  • 1Choose identifiers.
  • 1Represent the relationship.
  • 1Add integrity constraints.
Store students once, represent each enrolment as a relationship to a course offering, and enforce valid references and uniqueness rules.
Sia tip — Repeated text is often a missing entity or relationship.
Glossary

Key terms

entity
Distinct thing about which a system records information. This chapter uses the concept when students translate an information need into entities, keys, relationships and constraints. Use this definition when the task is to translate an information need into entities, keys, relationships and constraints.
relationship
Association among entities represented in a model. It helps explain the reasoning required to translate an information need into entities, keys, relationships and constraints. Use this definition when the task is to translate an information need into entities, keys, relationships and constraints.
constraint
Rule restricting stored states to preserve a business condition. Its limit matters because a diagram that omits grain or optionality cannot protect data quality. Use this definition when the task is to translate an information need into entities, keys, relationships and constraints.
FAQ

Databases and Information Models FAQ

What must survive the move required to translate an information need into entities, keys, relationships and constraints?

Translate an information need into entities, keys, relationships and constraints. Database concepts sit beside execution to show how persistent structure differs from running state. Distinct thing about which a system records information. This chapter uses the concept when students translate an information need into entities, keys, relationships and constraints.

Use this definition when the task is to translate an information need into entities, keys, relationships and constraints.

Can a diagram that omits grain or optionality protect data quality?

A diagram that omits grain or optionality cannot protect data quality. Association among entities represented in a model. It helps explain the reasoning required to translate an information need into entities, keys, relationships and constraints. Use this definition when the task is to translate an information need into entities, keys, relationships and constraints.

If a student were to insert a duplicate or missing reference, how should they test whether the model rejects it?

Store students once, represent each enrolment as a relationship to a course offering, and enforce valid references and uniqueness rules. A diagram that omits grain or optionality cannot protect data quality.

Study strategy

Exam move

Reconstruct the relationship among entity, relationship and constraint; complete the chapter application without notes; then test the result against this limit: A diagram that omits grain or optionality cannot protect data quality.

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

A+Everything unlocked
Unlocks this Bible + all 7 of your Adelaide University subjects - and 1,000+ Bibles across every Australian university.
Sia - your INFO1012 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
Unlock the full INFO1012 Bible + 7 Adelaide University subjects
$0.99 Trial