| Like in Order by [message #640031] |
Tue, 21 July 2015 08:29  |
Xandot
Messages: 235 Registered: January 2014 Location: India
|
Senior Member |
|
|
Hi All,
I want to order by like '%abc%'. Please help me out.
Query:
with t as
( select 'demo staging1 abc' a from dual
union
select 'demo staging2 abc' a from dual
union
select 'demo staging3 abc' a from dual
union
select 'demo staging efg' a from dual
union
select 'demo staging ijk' a from dual
union
select 'demo staging lmn' a from dual)
select * from t;
Thanks,
Xandot
[Updated on: Tue, 21 July 2015 08:34] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: Like in Order by [message #640036 is a reply to message #640035] |
Tue, 21 July 2015 08:35   |
Xandot
Messages: 235 Registered: January 2014 Location: India
|
Senior Member |
|
|
Row which contains string like 'abc' should be come at top like:
Expected Output:
demo staging1 abc
demo staging2 abc
demo staging3 abc
demo staging efg
demo staging ijk
demo staging lmn
|
|
|
|
|
|
|
|
|
|