Server Side Validation on Insert (check for exists)

Is it possible to check whether 2 values already exist on the same row on a table before insert?
I need to insert the personid value and the bookingid value only if the 2 do not already exist together.

Many thanks

Community Page
Last updated: