18.08.2016 Views

Database design, and information storage and retrieval

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ICT for Library <strong>and</strong> Information Professionals: A Training Package for Developing Countries<br />

Slide 8<br />

Data validation<br />

A Sample data validation file is given below:<br />

v to test the length of the field:<br />

If size v2 > 4 then ‘Field 2 is too long’ fi<br />

v To ensure that some fields cannot be skipped<br />

without entering data<br />

if a(v4) then ‘this field cannot be empty’ fi<br />

UNESCO ICTLIP Module 4. Lesson 4<br />

Note<br />

In version 1.4 of WinISIS the validation file may contain other<br />

instructions to define:<br />

– A list of values that can be entered into the specified<br />

fields (pick-up list)<br />

– Actions to be executed on the current record before its<br />

presentation for data entry<br />

– Actions to be executed on this record when editing is<br />

finished.<br />

Tip<br />

The functions described above may be explained at a later<br />

stage if there is a possibility of extending the course. More<br />

details about these are available in the WinISIS manuals<br />

provided with the software.<br />

Activity 04.04.02<br />

Create a val file for the database created by the students.<br />

Module 4:<strong>Database</strong> Design, <strong>and</strong> Information Storage <strong>and</strong> Retrieval: Lesson 4 Page 82 of 132

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!