i have a problem in a query like
select field1, field2
from table1
order by field1 field1 contains countries (varchar2)
the problem is that order by not shorting right , although i triyed everything..
what could be the problem ? and is there any solutions?
hi,
if you want to get values in some order then simply use the following query
select field1, field2 from table1 order by field1
if you want to get the values on some condition use where clause
select field1, field2 from table1 where your_condition order by field1
for more details on "Contains" visit the following link, where you can see some examples
http://msdn.microsoft.com/en-us/library/ms187787.aspx