DB2Problem
Programmer
Hello All,
I have a Java code which fetches SQL to populate the drop down box.
SQL is returning result in this order -
year_code year_description
5 2005
4 2004
3 2003
2 2002
The drop down build from the java program is showing the same order
However, I want to show the order like
2004
2005
2003
2002
How can I default the year code to 2004 when the SQL is returning the above order
What change I may need to incorporate in Java code or SQL ?? A code snippet will expedite and help me a lot.
Thanks for your feedback
I have a Java code which fetches SQL to populate the drop down box.
SQL is returning result in this order -
year_code year_description
5 2005
4 2004
3 2003
2 2002
The drop down build from the java program is showing the same order
However, I want to show the order like
2004
2005
2003
2002
How can I default the year code to 2004 when the SQL is returning the above order
What change I may need to incorporate in Java code or SQL ?? A code snippet will expedite and help me a lot.
Thanks for your feedback