Hey Ericsson,
...when it comes to db layer, it will still return all the records that partially match the criteria. Unless I do some more checking on the returned result set.
Agreed. In my opinion the extra checks are business logic and should be performed by a business layer. The database layer delivers all partial matches and the business layer restricts them to exact matches.
Regards,
Thomas