jasonhuibers
Programmer
SELECT
SUBSTR('\NAME\ADDRESS\CITY\STATE' , INSTR('\NAME\ADDRESS\CITY\STATE','\', 1, 2)-5 ) ADDRESS,
SUBSTR('\NAME\ADDRESS\CITY\STATE' , INSTR('\NAME\ADDRESS\CITY\STATE','\', 1, 2)-5 ) CITY
FROM dual;
How can I change this query to return ADDRESS and CITY in seperate columns as the result?
COL1: ADDRESS
COL2: CITY
SUBSTR('\NAME\ADDRESS\CITY\STATE' , INSTR('\NAME\ADDRESS\CITY\STATE','\', 1, 2)-5 ) ADDRESS,
SUBSTR('\NAME\ADDRESS\CITY\STATE' , INSTR('\NAME\ADDRESS\CITY\STATE','\', 1, 2)-5 ) CITY
FROM dual;
How can I change this query to return ADDRESS and CITY in seperate columns as the result?
COL1: ADDRESS
COL2: CITY