I have a table with columns timestamp and rating:
ID | timestamp | rating | etc...
1
2
3
4...
Timestamp is the time the submission was entered. Rating is the submission rating.
Now on my indexpage I would like to show the 10 newest submissions sorted by timestamp and the 10 higest rated submissions.
I know how to do it in two queries but can it be done in one? I'm trying to unload my server a little.