Normalization ले डेटालाई यसरी व्यवस्थित गर्छ कि हरेक तथ्य ठ्याक्कै एउटै ठाउँमा बस्छ, redundancy हटाउँछ। Denormalization ले reads छिटो बनाउन जानाजानी डेटा दोहोर्याउँछ। अधिकांश schemas normalized बाट सुरु हुन्छन् र मापनले माग गरेकै ठाउँमा मात्र denormalize हुन्छन्।
Normalization (3NF सम्म)
हरेक table ले एउटा entity वर्णन गर्छ; सम्बन्धित डेटा foreign key द्वारा सन्दर्भित हुन्छ।
-- Normalized: a customer's city is stored once
customers(id, name, city_id)
cities(id, name)
orders(id, customer_id, total)
