By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
3 rows affected
| MEMBER_CODE | FORENAME | SURNAME | DATE_OF_BIRTH | COALESCE(E.MESSAGE,'NOERROR') |
|---|---|---|---|---|
| 1 | Tom | Hanks | 31-DEC-99 | No Error |
| 2 | Rob | Rob | 28-FEB-99 | Forename is equal to surname |
| 3 | Al | Al | 01-JAN-23 | Forename less than 3 characters |
| 3 | Al | Al | 01-JAN-23 | Date of birth after 31/01/2008 |
| 3 | Al | Al | 01-JAN-23 | Forename is equal to surname |