6.4 UNIQUENESS OF RECORD:

6.4 ৰেকৰ্ডৰ স্বকীয়তা:

Database tables are used to store a massive amount of information that is stored across multiple records. To retrieve a record precisely, the uniqueness of records is very important. Not only for retrieving, but the uniqueness of record is also important to perform an update and delete operation on a table. For example, in Table 6.1 there are two entries with the same value (S Sarma) for the NAME field. If we perform an update or delete operation in the table based on the name field, both records will be updated or deleted. For example, if we update the ADDRESS field to “Delhi” of “S Sarma” two records will be updated. That is, we cannot uniquely identify a record by the NAME field in this table. To maintain the uniqueness of records we define keys in a table.

ডাটাবেচ তালিকাবোৰ একাধিক ৰেকৰ্ডত সঞ্চিত বৃহৎ পৰিমাণৰ তথ্য সংৰক্ষণ কৰিবলৈ ব্যৱহাৰ কৰা হয়। ৰেকৰ্ড এটা সঠিকভাৱে পুনৰুদ্ধাৰ কৰিবলৈ, ৰেকৰ্ডবোৰৰ স্বকীয়তা অতি গুৰুত্বপূৰ্ণ। কেৱল পুনৰুদ্ধাৰৰ বাবেই নহয়, কিন্তু টেবুলএখনত আপডেট কৰা আৰু অপাৰেচন বিলোপ কৰাৰ বাবেৰে ৰেকৰ্ডৰ স্বকীয়তাও গুৰুত্বপূৰ্ণ। উদাহৰণ স্বৰূপে, তালিকা 6.1-ত নাম ক্ষেত্ৰৰ বাবে একে মূল্যৰ দুটা প্ৰবিষ্টি আছে । যদি আমি নাম ক্ষেত্ৰৰ ওপৰত আধাৰিত কৰি তালিকাত এটা আপডেট বা বিলোপ অপাৰেচন কৰোঁ, দুয়োটা ৰেকৰ্ড আপডেট বা বিলোপ কৰা হ’ব। উদাহৰণ স্বৰূপে, যদি আমি ঠিকনা ক্ষেত্ৰখন “এছ শৰ্মা”ৰ “দিল্লী”লৈ আপডেট কৰোঁ তেন্তে দুটা ৰেকৰ্ড আপডেট কৰা হ’ব। অৰ্থাৎ, আমি এই তালিকাত নাম ক্ষেত্ৰৰ দ্বাৰা এটা ৰেকৰ্ড অনন্যভাৱে চিনাক্ত কৰিব নোৱাৰো। ৰেকৰ্ডৰ স্বকীয়তা বজাই ৰাখিবলৈ আমি এখন তালিকাত কীবোৰ নিৰ্ধাৰণ কৰোঁ।

Keys are nothing but a field or a collection of fields whose value never repeats in a table. In Table 6.1 the “MOBILE NO” field can be used as a key since one mobile number does not belong to more than one person. We can also add one or more additional fields in a table as a key field. For example, we can redesign. Table 6.1 as Table 6.2 by adding the “ID” field additionally. There are different types of keys in a database table.

চাবিবোৰ ক্ষেত্ৰ বা ক্ষেত্ৰৰ সংগ্ৰহৰ বাহিৰে আন একো নহয় যাৰ মূল্য কেতিয়াও টেবুলত পুনৰাবৃত্তি নহয়। তালিকা 6.1-ত “ম’বাইল নম্বৰ” ফিল্ডটো চাবি হিচাপে ব্যৱহাৰ কৰিব পাৰি কিয়নো এটা মোবাইল নম্বৰ এজনতকৈ অধিক ব্যক্তিৰ নহয়। আমি মুখ্য ক্ষেত্ৰ হিচাপে এখন তালিকাত এক বা একাধিক অতিৰিক্ত ক্ষেত্ৰ যোগ দিব পাৰোঁ। উদাহৰণ স্বৰূপে, আমি পুনৰ নিৰ্মাণ কৰিব পাৰোঁ। অতিৰিক্তভাৱে “আইডি” ফিল্ড যোগ দি তালিকা 6.1 তালিকা 6.2 হিচাপে তালিকা 6.1। ডাটাবেচ তালিকাত বিভিন্ন প্ৰকাৰৰ কী আছে।