Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in SQL by (44.4k points)

Could someone tell me what is primary key and foreign key in SQL?

1 Answer

0 votes
by (99k points)

Primary the key could be defined as a column or any set of columns that hold a unique value and identify a single row.

Whereas, a foreign key is defined as a column or set of columns in a table that acts as a reference for the primary key in another table.

If you are interested in learning SQL? Then I would suggest you check out the SQL certification from Intellipaat that is co-created with Microsoft!

Also, do watch our video from experts on the SQL tutorial to gain more insight.

Related questions

0 votes
0 answers
0 votes
1 answer
asked May 3, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Feb 17, 2020 in SQL by anmolj (9k points)

Browse Categories

...