Question
Which of the following accurately describes the role of
a "foreign key" in a relational database system?Solution
A foreign key is a column (or a set of columns) in one table that refers to the primary key in another table. This relationship enforces referential integrity , ensuring that the value in the foreign key column matches an existing value in the referenced table's primary key column. This mechanism is crucial for relational databases as it defines how data in one table is related to data in another. For example, consider a database with two tables: Orders and Customers .
- The Orders table has a column CustomerID which acts as a foreign key referencing the primary key CustomerID in the Customers table.
- This relationship ensures that each order is associated with a valid customer.
Recently Air India has introduced a new policy which will give an extension of service to its selected pilots for how many years?
According to the Census 2011, which of the following statement about the worker of Uttar Pradesh is correct?
Silent Valley National Park is located in which state?Â
Silent Valley National Park is located in which Indian state?
At the 53rd International Film Festival of India held in Panaji, Goa which of the following movies has won the Best Film Award?
Who was the first woman to travel into space from the state Haryana?
Who has been appointed as the new Chairman and Managing Director of Bharat Electronics Limited (BEL)?
Which of the following states is the first to create the role of Director-General of Audit?
In October 2020, what was the milestone achieved by Virat Kohli in T20 cricket, making him the first Indian batsman to reach a specific number of runs?
Which Indian company announced the development of 'JioBrain,' a comprehensive suite of AI tools?