• Tidak ada hasil yang ditemukan

Database Introduction

N/A
N/A
Protected

Academic year: 2023

Membagikan "Database Introduction"

Copied!
9
0
0

Teks penuh

(1)

Keys in Relational Model

Presented By

Fahmida Afrin

(2)

এই Lesson এ কক কশখব ?

• What is Key?

• Super Key

• Candidate Key

• Primary Key and

• Foreign Key

(3)

Key in DBMS

A DBMS key is an attribute or set of an attribute which helps you to identify a row (tuple) in a relation (table).

Keys help you uniquely identify a row in a table by a combination of one or more columns in that table.

(4)

Super Key

The set of attributes which can uniquely identify a tuple is known as Super Key.

For Example, STUD_NO, (STUD_NO, STUD_NAME)

(5)

• The minimal set of attribute which can uniquely identify a

tuple is known as candidate key.

• For Example, STUD_NO in STUDENT relation.

• The candidate key can be simple (having only one attribute) or

composite as well.

• For Example, {STUD_NO,

COURSE_NO} is a composite candidate key for relation STUDENT_COURSE.

Candidate Key

(6)

• There can be more than one candidate key in relation out of which one can be chosen as the primary key.

• For Example, STUD_NO, as well as STUD_PHONE both, are candidate keys for

relation STUDENT but

STUD_NO can be chosen as the primary key (only one out of many candidate keys).

Primary Key

(7)

• For Example, STUD_NO in STUDENT_COURSE is a

foreign key to STUD_NO in STUDENT relation.

Foreign Key

(8)

Alternate Key

• The candidate key other than the primary key is called an alternate

key.

(9)

“Opportunities don’t happen, you create them.”

– – Chris Grosser

Referensi

Dokumen terkait

Considering the example above, the researcher is interested in analyzing the form of the word derivational and inflectional morpheme further than songs by Adele and record it as

For another researcher , this research can be used as a reference for further research, for example to investigate the comparison between pre and post role play

For example, suppose we want a list of instructor IDs and salaries without listing the name and dept name values from the instructor relation of Figure 2.1, then the result, shown

As for Aceh, for example, it can be seen that there is support for certain tarekat groups against a particular political party or candidate.. For example, thatHabib and Said support

Children will:  explain that some people have special connections to many countries through, for example, marriage, birth, residence and chosen or forced movement  discuss how some

An example of question that uses multiple responses analysis is as follow: Please tick as many criteria you think are important in designing a phone: Price Color Materials

This example mirrors one of the research Management decision problem Marketing research problem Secondary data collection and analysis Identify and select individuals for primary

Furthermore, the fact that nucleic acids are used as the engineering material opens up the opportunity to interface with biological samples for controlling gene expression.. For