Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
GH-202: Add anomalies notes
Browse files Browse the repository at this point in the history
  • Loading branch information
shorodilov committed Feb 25, 2024
1 parent 72be9ac commit 5b34f15
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/pres/normalization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ <h2>Insertion anomalies</h2>
</table>
</section>
</div>
<div class="notes">
When a new player <code>acen1999</code> join the game, they have nothing in their <code>inventory</code>.
Therefore, the details of any player who have at least one item can be recorded, but a newly game member
who has no items cannot be recorded, except by setting the <code>inventory</code> to <code>null</code>.
</div>

<div class="step slide" id="updateAnomalies"
data-rel-x="440"
Expand Down Expand Up @@ -162,6 +167,13 @@ <h2>Update anomalies</h2>
</table>
</section>
</div>
<div class="notes">
The same information can be expressed on multiple rows, therefore updates to the relation may result in
logical inconsistencies. If the <code>wheed1997</code> increase their <code>level</code>, when the
<code>rank</code> should be updated as well. But if the update is only partial successful, then the
relation is left in an inconsistent state. Specifically. the relation provides conflicting information
on "level -- rank" for "wheed1997" player, and on "inventory" and "level" for "acen1999".
</div>

<div class="step slide" id="deletionAnomalies"
data-rel-x="600"
Expand Down Expand Up @@ -206,6 +218,10 @@ <h2>Deletion anomalies</h2>
</table>
</section>
</div>
<div class="notes">
If a player looses their items completely, the record must be deleted, unless the <code>inventory</code>
field is set to <code>null</code>. This leads to the loosing all other information about a player.
</div>

<div class="step slide" id="1nf" aria-labelledby="1NFHeader"
data-x="1310"
Expand All @@ -214,7 +230,6 @@ <h2>Deletion anomalies</h2>
<h2 id="1NFHeader">First normal form</h2>
<section aria-labelledby="1NFRequirements">
<h3 id="1NFRequirements">Requirements</h3>
<hr>
<ul>
<li>
Row order should not be used to convey information
Expand Down

0 comments on commit 5b34f15

Please sign in to comment.