• Check constraint does work in way what I have mentioned in a problem.

    May be logic what I have written in the function which is getting called from constraint is little bit tricky. I have to fix it.