i have 2 tables
forumMsg forumTopic
id idTopic Text idUser Views id Topic
TopOrder
-------------------------------------- ----------------------
1 1 Hello 1 4 1 General 2
2 1 More 2 1 2 Other 1
3 2 Help 3 4
4 2 Msg.. 4 5
i need a query to see forum topics and :
who was the las user that posted and sum(Views),
ordered by TopOrder
like this:
Topic Views LastUserId
-------------------------------------
Other 9 4
General 5 2
it is for MySQL ver 4.1, anyway if somebody can tell me how to make
the query in ANSI SQL, thanks...
Alexei.