I have an ID in the table, and tr_code ,
ID tr_code 15 587-20140125-79-15 255 655-20140525-65-255 4587 611-20160815-72-4587 ............................... 35681 715-20170125-45-35681 I need to create a trigger to check if the ID does not match the last digit after - to tr_code, corrected: FOR EXAMPLE
ID tr_code *381* 587-20140125-79-*384* He would fix on so
ID tr_code *381* 587-20140125-79-*381* Thank you in advance