Interview Questions

1. What is FOREIGN KEY constraint?

Foreign Key is a field in database table that is Primary key in another table. It can accept multiple null, duplicate values.

Example: We can have a DeptID column in the Employee table which is pointing to DeptID column in a department table where it a primary key. 

By Hena Parveen 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

6654796 1720 1492 859

Angular

204657 92 71 46

Wordpress

172206 72 64 36