If I have two tables,
First table1 :
id name
1 John
2 Andrew
3 Serj
4 Mike
5 Adam
and Second table2 :
user_id count date
2 0 01-09-2011...
5 9 05-09-2011...
1 5 05-09-2011...
3 7 04-09-2011...
How can I Select users from table1 and order them by count, date values from table2 ( DESC )
The result I want :
1 -- Adam ( count = 9 , date = 05.. )
2 -- John ( count = 5 , date = 05.. )
3 -- Serj ( count = 7 , date = 04.. )
4 ...
5 ...
...
If is not possible, or is it hard to get result I want ( see my result), then just order by count and date.
1 Answer