Uniqueness based on two fields

Uniqueness based on two fields

I am able to set a particular field to unique.

Sometimes, my requirement is such that combination of a field has to be unique. For example. Name of person and date of birth combination has to be unique.

Is it possible to set that in GUI or script ?

Thanks.