What is data validation? Describe the types of validation rule in MS-Access.

0
GK SIR
May 13, 2025 06:28 PM 0 Answers Database
Member Since Dec 2016
Subscribed Subscribe Not subscribe
Flag(0)

Data validation is the process of ensuring that the data recorded in the database is accurate, consistent and meets the necessary standards before it is stored. This helps prevent errors, maintain data integrity and improve the reliability of database applications.

Types of validation rules in MS access

  1. Field-Level Validation Rules:

These are used in individual fields (columns) in a table, which limits the type of data that can be recorded. Examples include:

-Required: Force the area to a value (no space).

-Verification rules: Specifically specify terms, such as limiting the values ​​between 18 and 65 (> = 18 and <= 65).

-Verification text: A customized error message appears when the confirmation rule is broken.

  1. Record-Level Validation Rules:

These apply to the entire item, and ensure that the combination of fields in the same line meets specific criteria. For example:

-A rule of record level may be that the last date is always after the start date ([enddate]> [start date]).

  1. Input mask:

Check the data registration format, ensure continuity. For example:

-To use a specific format, a telephone number field may have an input mask as an entrance mask (999) 000-0000.

  1. Data type and field properties:

-Data type: Limits the type of data (eg text, number, date).

-Field size: Set maximum size for lesson or number field (eg a text box limited to 50 characters).

  1. Lookup and relationship integrity:

-Secure data stability in related tables through functions such as foreign key barriers and reference interesting.

-stops orphans or invalid foreign key entries.

 

डाटा भ्यालिडेसन (Data Validation)

डाटा भ्यालिडेसन भनेको डाटाबेसमा डाटा भण्डारण गर्नु अघि, त्यसको सटीकता, निरन्तरता, र आवश्यक मापदण्ड पूरा भएको सुनिश्चित गर्ने प्रक्रिया हो। यसले त्रुटिहरू रोक्छ, डाटा इंटेग्रिटी  कायम राख्छ र डाटाबेस अनुप्रयोगहरूको विश्वसनीयता सुधार गर्छ।

MS Access मा डाटा भ्यालिडेसनका प्रकारहरू:

  1. फिल्ड-स्तर भ्यालिडेसन नियमहरू (Field-Level Validation Rules):
    यी नियमहरू विशेष फिल्ड (कोलम) मा लागू गरिन्छन्, जसले निश्चित प्रकारको डाटा मात्र राख्न अनुमति दिन्छ।

    • Required (आवश्यक): फिल्ड खाली नराख्न बाध्य पार्छ।
    • Validation Rule (भ्यालिडेसन नियम): निश्चित सर्तहरू तोक्छ, जस्तै उमेर फिल्डलाई १८ देखि ६५ को बीचमा सीमित राख्नु (>=18 AND <=65)।
    • Validation Text (भ्यालिडेसन टेक्स्ट): जब नियम उल्लङ्घन हुन्छ, तब देखाइने त्रुटि सन्देश हो।
  1. रेकर्ड-स्तर भ्यालिडेसन नियमहरू (Record-Level Validation Rules):
    • यी सम्पूर्ण रेकर्डमा लागू हुन्छन्, जसले एकै पङ्क्तिमा रहेका सबै फिल्डहरूको संयोजन निश्चित मापदण्ड पूरा गरेको सुनिश्चित गर्दछ।
    • उदाहरण: समाप्ति मिति (EndDate) सधैं सुरु मिति (StartDate) भन्दा पछाडि हुनुपर्ने नियम ([EndDate] > [StartDate])।
  1. इनपुट मास्क (Input Masks):
    • डाटा प्रविष्टिको ढाँचा नियन्त्रण गर्छ, जसले सुसंगतता सुनिश्चित गर्छ।
    • उदाहरण: फोन नम्बर फिल्डलाई (999) 000-0000 जस्तो ढाँचामा सीमित राख्न सकिन्छ।
  1. डाटा प्रकार र फिल्ड प्रोपर्टीज (Data Types and Field Properties):
    • Data Type (डाटा प्रकार): फिल्डले कस्तो प्रकारको डाटा राख्छ (जस्तै: टेक्स्ट, नम्बर, मिति)।
    • Field Size (फिल्ड साइज): टेक्स्ट वा नम्बर फिल्डहरूको अधिकतम साइज निर्धारण गर्छ (जस्तै: टेक्स्ट फिल्डलाई ५० क्यारेक्टरमा सीमित गर्नु)।
  1. लुकअप र रिलेसनसिप (Lookup and Relationship Integrity):
    • सम्बन्धित तालिकाहरूमा डाटा निरन्तरता कायम राख्छ, जस्तै फरेन की (foreign key) बाध्यात्मकता र रेफरेन्सियल इंटेग्रिटी। अनाधिकृत रेकर्डहरू र अवैध फरेन की इन्ट्रीहरूलाई रोक्छ।
0 Subscribers
Submit Answer
Please login to submit answer.
0 Answers
Sort By:

Leave a Reply

Your email address will not be published. Required fields are marked *

*