ORACLE SQL ORDER BY -
how go ordering last 3 letters of name?
for example:
ashley
julia
belvet
ley > lia > vet
also, how go doing secondary sort id if last 3 letters same (bobby, robby...)?
for first question:
order substr(name, -3) for second question:
order substr(name, -3), id
Comments
Post a Comment