My question is not formuled from a database point of view, but advantages from a business logic point of view.
Using as example table CreditCard and column CreditCardNumber. I can assign a unique index to CreditCardNumber, because there's no possible to have two identical CreditCardNumber. But, isn't this a business rule? So should I allow similar CreditCardNumber in database, and check myself the uniqueness in the business logic layer?
Am I correct? Or which advantages exists about using unique indexes in this case? Or both cases are correct and I can choose anyone?
Thanks.