6.7 CANDIDATE KEY:

6.7 প্ৰাৰ্থী কী:

A field or a group of fields that can be used as a primary key of a table is called a candidate key. In Table 6.2 “ID” and “MOBILE NO” both are candidate keys. In a database table, if there are N candidate keys, anyone out of N can be used as the primary key. In that case, the remaining N-1 candidate keys are called alternate keys. In the previous table, if we designate the “ID” field as the primary key, the “MOBILE NO” field will be called an alternate key. If there is a candidate key which is composed of more than one field, then that candidate key is called a composite key.

এখন ক্ষেত্ৰ বা ক্ষেত্ৰৰ গোট যাক তালিকাএখনৰ প্ৰাথমিক চাবি হিচাপে ব্যৱহাৰ কৰিব পাৰি, ইয়াক প্ৰাৰ্থী কী বুলি কোৱা হয়। তালিকা 6.2 “আইডি” আৰু “ম’বাইল নম্বৰ” দুয়োটা প্ৰাৰ্থীৰ চাবি। ডাটাবেচ তালিকাএখনত, যদি এন প্ৰাৰ্থী কী থাকে, এনৰ বাহিৰৰ যিকোনো লোকক প্ৰাথমিক কী হিচাপে ব্যৱহাৰ কৰিব পাৰি। তেনে ক্ষেত্ৰত, বাকী থকা এন-1 প্ৰাৰ্থী কীবোৰক বৈকল্পিক কী বুলি কোৱা হয়। পূৰ্বৱৰ্তী তালিকাত, যদি আমি “আইডি” ক্ষেত্ৰক প্ৰাথমিক কী হিচাপে নিৰ্ধাৰণ কৰোঁ, “ম’বাইল ন’ ফিল্ডক এক বৈকল্পিক কী বুলি কোৱা হ’ব। যদি এটাতকৈ অধিক ক্ষেত্ৰৰে গঠিত প্ৰাৰ্থী কী থাকে, তেনেহ’লে সেই প্ৰাৰ্থী কীক এক মিশ্ৰিত কী বুলি কোৱা হয়।