View Full Version : Foreign key ?
joyadelfin
08-17-2019, 03:39 AM
Hello Dear,
Please Tell Me What Is Foreign key ?
Sherin
08-21-2019, 02:02 AM
(1) Foreign Key provides link between data in two tables.
(2) It acts as a cross-reference between tables because it references the primary key of another table, establishing a link between them.
SQL Server::
CREATE TABLE Student(
Id int NOT NULL PRIMARY KEY,
Name int NOT NULL,
DepartmentId int FOREIGN KEY REFERENCES Department(Id) )
blackmagicislam
08-22-2019, 05:59 AM
Thanks for the great knowledge
vigneshtech
08-22-2019, 06:09 AM
A foreign key is a group of columns in a relational database table which provides a link between data in two tables. Foreign key acts as a cross-reference between tables because it refers to the primary key of another table, thereby to establish a link between them.
joyadelfin
09-19-2019, 08:37 AM
Thank's Dear.
shaili shah
09-20-2019, 01:41 AM
A foreign key is a key used to link two tables together.it is a column or a combination of columns whose values match a Primary Key in a different table.
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.