I order some records by their value. If two records have the same value i want to order those two records by their date.
For example:
record1 34 1.1.2000
record2 26 3.4.2000
record3 26 2.4.2001
record4 76 1.5.2000
This should be ordered like this:
record4 76 1.5.2000
record1 34 1.5.2000
record3 26 2.4.2001
record2 26 3.4.2000
How can i manage this in SQL?
Like this:
Each of these can also have an ASC/DESC specifier:
Here is a link to MSDN, describing the syntax of the
ORDER BYclause.