How can I prevent duplicate rows in a table?

Original text of this message