What is a composite key in a database?
ڈیٹا بیس میں جامع کلید کیا ہے؟
- Set of one or more attribute that can be used to uniquely identify the records in a table
- The minimal set of attribute that uniquely identifies each occurrence of an entity type
- The candidate key that is selected to uniquely identify each occurrence of an entity type
- A candidate key that consists of two or more attributes
Explanation
In database design, a composite key is a candidate key that consists of two or more attributes (table columns) that together uniquely identify an entity occurrence (table row).
A compound key is a composite key for which each attribute that makes up the key is a simple (foreign) key in its own right.
Related MCQs
- 5
- 8
- SyntaxError
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
حروف، اعداد اور خاص علامات پر مشتمل پاس ورڈ زیادہ مضبوط کیوں سمجھا جاتا ہے؟
- It reduces password length
- It increases possible combinations
- It is easier to remember
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے ڈیٹا پروسیسنگ کی درست ترتیب کون سی ہے؟
- Input → Processing → Output → Storage
- Processing → Input → Storage → Output
- Storage → Input → Processing → Output
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
ڈبل انڈر لائن کے لیے شارٹ کٹ کی کیا ہے؟
- Ctrl + Shift + D
- Ctrl + Ctrl + Shift + B
- Ctrl + Ctrl + Shift + U
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سنٹرل پروسیسنگ یونٹ کس کام کا ذمہ دار ہے؟
- Processing instructions and calculations
- Displaying images and associated text
- Typing input for processing
- None of these