clck.ru/GgPz5
clck.ru/GhYHa
Let’s recap the the last topic
The main Database Concepts
Assessment
prior knowledge
Lesson 56
Assessment criteria
Understanding:
Watching the video
Questions for discussion:
1. What types of keys are in the database?
2. Why do I need a primary key?
3. What is a foreign key?
4. How many tables are considered on the example?
5. How to distinguish a primary key from a foreign key?
Discussion
The primary key is
cannot have the same primary key values.
Primary key usually
one example of unique indices and
None of the two table entries
used to uniquely identify table entries.
abbreviated as PK (primary key)
The primary key is one example of unique indexes and is used to uniquely identify table entries. None of the two table entries can have the same primary key value. The primary key is usually abbreviated as PK (primary key)
A foreign key is a key,
match the Primary Key in another table.
used to join two tables.
reference key.
A foreign key is a column or
combination of columns whose values
Sometimes also called
A foreign key is a key used to join two tables. Sometimes it is also called a reference key. A foreign key is a column or combination of columns whose values correspond to the Primary key in another table.
Practical work
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.