I currently have the following query:
SELECT SPEAKERNAME,
SUBSTR(SPEAKERADDRESS, CHARINDEX('-', SPEAKERADDRESS), 4)
FROM SPEAKER;
I am tyrying to only return the postcode from SPEAKERADDRESS and the postcode is always after '-' but i am getting an invalid identifier (ORA-00904) error for CHARINDEX
charindex()?CHARINDEX, useINSTRinstead: sqlines.com/oracle/functions/instr