I want the following database table:
[Id] [BookType] [Hardcover]
But only when booktype is 1, hardcover may not be null. So whenever booktype is 2 or 3 I should be able to give a null value to hardcover.
Is there anything in my database where I can set this kind of rule?