Hi folks,
i've got a commenting system in our database. Just like stackoverflow -> each post has a list of comments. kewl.
Anonymous people can add a comment or registered users also.
In my table, i'm thinking of having the following:
- Userid int NULLABLE
- AnonymousNickname varchar(100) NULLABLE
- AnonymousEmail varchar(200) NULLABLE
now it can only be one or the other. You're either registered or your not.
So should i enforce some type of constraint that says one or the other .. and if so, how?
NOTE: Database is Microsoft Sql Server 2008.
cheers!