Explained step by step
There are several kinds of keys. The primary identifies each row; a composite is a primary made of several columns; a foreign points to another table's primary. Candidates are the columns that could be primary, and alternates are the candidates not chosen. A surrogate is generated by the system, like a number that counts up, when no column works. It's like identifying a student: by national ID (candidate), by student number (surrogate) or by class + roll number (composite).
An anomaly is a flaw that appears when the database is badly planned or keeps everything in 1 flat table. There are 3 kinds. Insertion: you can't store one piece of data without another. Update: repeated data forces you to change it in several rows, and if you miss one it's inconsistent. Deletion: deleting one piece of data forces you to delete another you wanted to keep. It's like writing a friend's phone number in 5 notebooks: when it changes, you have to fix all 5.
Normalizing is organizing data into tables and relating them following rules, so each piece of data lives in one single place. That removes repetition and odd dependencies, and keeps data consistent. Also, the structure can be extended without breaking what already exists. It's like going from a messy notebook to an address book with sections: each contact appears once and everyone looks there.
Normalizing has advantages: less repeated data, better design, more consistency and relationships the database enforces. It also has costs: the design is more complex, there are more tables to maintain and more JOINs are needed to read, which can slow queries down. It's like keeping each thing in its own drawer: everything is tidy, but packing a backpack means opening 5 drawers.
Normal forms are step-by-step rules for normalizing. 1NF: no repeating groups, no mixed types in a column and a primary key. 2NF: meets 1NF and has no partial dependencies. 3NF: meets 2NF and has no transitive dependencies (a non-key column doesn't depend on another non-key column). BCNF is a slightly stricter 3NF. It's like the levels of a driving test: you don't get to level 2 without passing 1. A table in 3NF is considered normalized.
Denormalizing is adding repeated data on purpose to one or more tables, to avoid expensive JOINs. It improves reads at the cost of heavier writes. It's not undoing normalization: it's copying some data where it's read a lot. It's like having your mom's phone number on the fridge as well as in the address book: you find it instantly, but if it changes you fix it in 2 places. With split databases (federation, sharding), JOINs over the network are even more expensive.
Denormalizing has advantages: reading is faster, queries are simpler, there are fewer tables and it's convenient to manage. And downsides: inserts and updates are more expensive, the design is more complex, there's more repeated data and more chances of inconsistency. It's like photocopying a notice and sticking it on 10 doors: everyone sees it fast, but if the date changes, all 10 must be replaced.