# Cardinality

Defines the numerical attributes of the relationship between two entities or entity sets. The three main cardinal relationships are one-to-one (1:1), one-to-many (1:m), and many-many (m:n).

&#x20;**A one-to-one example**: would be one student associated with one login name.

&#x20;**A one-to-many example** (or many-to-one, depending on the relationship direction): One product line contains multiple products.&#x20;

**Many-to-many example**: Students as a group are associated with multiple faculty members (teachers), and faculty members (teachers) in turn are associated with multiple students.

<figure><img src="/files/BoqMKObpqJMntQtI5YaU" alt=""><figcaption></figcaption></figure>

**Cardinality views:** Cardinality can be shown as look-across or same-side, depending on where the symbols are shown.&#x20;

**Cardinality constraints and obligated (or participation constraint)**: The minimum or maximum numbers that apply to a relationship


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://courses.parottasalna.com/database-engineering/entity-relationship-diagram/cardinality.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
