Hi
I have the following query
select SUBSTRING_INDEX(m.FileName, '/', -1) as ShortFileName from modifications m order by ShortFileName ASC;
The output of the query is
+------------------------+
| ShortFileName |
+------------------------+
| CTKAction.java |
| CTKView.java |
| _673.py |
| build.properties |
| eclipse.py |
+------------------------+
I have another query
Select name from dev order by name
The output of this query is
+------------------------+
| name |
+------------------------+
| A |
| a |
| b |
| C |
| c |
+------------------------+
Note the difference in the sorted output of both this query
In the first query output all the capital ones are first and then the small ones whereas in the 2nd query this is not the case.
Why the queries are behaving differently?
I have the following query
select SUBSTRING_INDEX(m.FileName, '/', -1) as ShortFileName from modifications m order by ShortFileName ASC;
The output of the query is
+------------------------+
| ShortFileName |
+------------------------+
| CTKAction.java |
| CTKView.java |
| _673.py |
| build.properties |
| eclipse.py |
+------------------------+
I have another query
Select name from dev order by name
The output of this query is
+------------------------+
| name |
+------------------------+
| A |
| a |
| b |
| C |
| c |
+------------------------+
Note the difference in the sorted output of both this query
In the first query output all the capital ones are first and then the small ones whereas in the 2nd query this is not the case.
Why the queries are behaving differently?