How can alert if I am repeating a value in a particular column

I would need to be alerted if I repeat an ID value in a column. How can I do that?

Answers