Hi Sowmya,
What data are you checking, is it a table or a single field ?
I assume you understand validation of a table should be by count of instances and if its a single field then what Pavan suggested above would work.
You need to provide code and explain the structure for us to understand the issue.
Cheers,
Sai