benvegiard
Programmer
I have an employee history table that has EmpID (Int) and hire and terminate date columns (both Date/Time) among other columns. I would like the database to ensure that only one record per employee has a NULL terminate date so that we can be assured no employee has more than one “active” history record (I know, it’s an oxymoron J)
Can a check constraint do this? Or do I have to go with a trigger? Any other techniques (other than using UI Code) that anyone can think of?
Thanks!
Ben
Can a check constraint do this? Or do I have to go with a trigger? Any other techniques (other than using UI Code) that anyone can think of?
Thanks!
Ben