# Mysql perusteet 101

**Selitä omin sanoin alla olevat tietokantoihin liittyvät käsitteet.**

* Tietokanta (database)
* Taulu (table)
* Sarake (column)
* Rivi (row)
* Päällekkäisyys/Toistuvuus (Redundancy)
* Pääavain (Primary key, lue myös [*pääavaimista*](https://book.sovelluskontti.com/relaatiotietokannat/paeae-ja-viiteavaimet).)
* Uniikki/Yksilöllinen avain (Unique key)
* Kooste avain (compound key, composite key)
* Viiteavain (Foreign key, lue myös [*viiteavaimista*](https://book.sovelluskontti.com/relaatiotietokannat/paeae-ja-viiteavaimet#viiteavain).)
* Indeksi (Index, lue myös [indeksoinnista](https://book.sovelluskontti.com/relaatiotietokannat/indeksointi).)
* Viite-eheys (Referential Integrity)
* Asiakas-Palvelin arkkitehtuuri (Client/Server Architecture)
* ER -kaavio (Entity–Relationship model, lue myös [*ER-kaavioista*](https://book.sovelluskontti.com/relaatiotietokannat/er-kaaviot).)&#x20;

**Yhdistä edellä mainitut käsitteet alla olevaan kuvaan.**

![](https://589000656-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LK5fotMiq9WQrk2MQAs%2F-LpdZ1uX-0Qa_YbowbIu%2F-LpdZfh7z4-7pG1dZIo8%2FMySQL-Sample-Database-Schema.png?alt=media\&token=d924e51e-e420-42e4-914d-cdec415620cc)
