how to check primary key in teradata table