Hi People,
I know this is a mysql forum but would you know how this would work in
sql enterprise
select substring(postcode,1,if(instr(postcode," ")=0,length(postcode),instr(postcode," "))) from my_table;
it doesnt like the if statement.......
works fine in mysql!
Cheers!!!
