Foreign key is?
فارن کی کیا ہوتی ہے؟
- A key that uniquely identifies a record in the same table
- A key used to delete records
- A field in one table that refers to the primary key of another table
- A password for database security
Explanation
- A Foreign Key is a field in one table that refers to the Primary Key of another table.
- It is used to create a relationship between two database tables.
- A foreign key helps maintain referential integrity by ensuring valid data links.
Additional information:
- Primary Key: Uniquely identifies each record in a table.
- Candidate Key: A field that can become a primary key.
- Composite Key: A key made from two or more columns.
- Super Key: One or more columns that uniquely identify a record.
Last verified on 06-07-2026
Related MCQs
سمورغ نامی سپر کمپیوٹر کس ملک نے تیار کیا ہے؟
- China
- Japan
- Iran
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سی پی یو کے اندر کون سی میموری نصب ہوتی ہے؟
- RAM
- ROM
- Register
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
ورلڈ وائیڈ ویب کو رابرٹ کیلِیو کے ساتھ کس نے ایجاد کیا؟
- Tom Burne
- Tim Burner Lee
- Fred Zuckerberg
- Both a and b
اس سوال کو وضاحت کے ساتھ پڑھیں
مصنوعی ذہانت کا بانی کسے کہا جاتا ہے؟
- Mark Zuckerberg
- Alan Turing
- John McCarthy
- Bill Gates
اس سوال کو وضاحت کے ساتھ پڑھیں
کمپیوٹر گرافکس کا بانی کسے کہا جاتا ہے؟
- Charles Babbage
- Alan Turing
- Ivan Sutherland
- None of these