i have the column(char(6)) i need to remove the first char starting with 1 and last 2 chars ending with 00
need help how to write the correct select statement.
select * from table
where
code(char(6)) = (last two char(code)!=00 and first char(code) !=1)
Example:
Code = 240500(should be there)
99999D(should be there)
100100(should not be there)
199999(should not be there)
see its quit clear , here there are two conditions.
the code starting from 1 and ending from 00 should be removed like--- 1 001 00(should not be there).
and
the code 2405 00(should be there) because its not starting from 1.
i hope its clear now.