I've got this line of SQL code here, which doesn't work. I guess it's because I'm writing the wrong syntax.
constraint ck_ceg check(nvl(ceg in ('%rt','%yrt'),'vezérigazgató'))
This check would have to check if 'ceg' wether has 'rt' or 'yrt' at the end of it's name and if it does another columns value has to be changed to 'vezérigazgató'. Is this possible by a check constraint?
Thanks in advance!