SQL Keys
Alternate Key
Alternate key is a secondary key it can be simple to understand by an example: Let’s take an example of student it can contain NAME,…
Unique Key
A unique key is a set of one or more than one fields/columns of a table that uniquely identify a record in a database table….
Composite Key
A composite key is a combination of two or more columns in a table that can be used to uniquely identify each row in the…
FOREIGN KEY
In the relational databases, a foreign key is a field or a column that is used to establish a link between two tables. In simple…
PRIMARY KEY
A column or columns is called primary key (PK) that uniquely identifies each row in the table. If you want to create a primary key,…