6. Normalization, Cascades

Normalization helps prevent data redundancy and ensures efficient database organization.

Normalization Rules and Forms

The three primary normalization forms are essential, though additional forms exist.

Following normalization rules helps avoid anomalies in database design.

ON DELETE & ON UPDATE Actions

These constraints define how related records behave when a referenced record is modified or deleted.

ON DELETE

ON UPDATE

SQL Query Writing Order

  1. SELECT
  1. FROM
  1. WHERE
  1. GROUP BY
  1. HAVING
  1. ORDER BY

SQL Query Execution Order

  1. FROM – Identifies the data source.
  1. WHERE – Filters records based on conditions.
  1. GROUP BY – Groups records with similar values.
  1. HAVING – Filters grouped records.
  1. SELECT – Chooses columns to display.
  1. ORDER BY – Sorts the final result.

Reference

The content in this document is based on the original notes provided in Azerbaijani. For further details, you can refer to the original document using the following link:

Original Note - Azerbaijani Version