What I am trying to do doesn't seem that hard, but I can't figure it out.
I have a single table that I want to select each row and group by one field and order by another.
Example:
blogger | blog text | blog date
jim blah 11/11/07
anna blah 11/10/07
chris blah 11/09/07
chris blah 11/08/07
jim blah 11/07/07
anna blah 11/06/07
I want to group by the blogger and date descending, BUT ALSO sort by which blogger has the newest entry
My output should be this:
jim blah 11/11/07
jim blah 11/07/07
anna blah 11/10/07
anna blah 11/06/07
chris blah 11/09/07
chris blah 11/08/07
What is the best way to produce my desired results?
Thanks
I have a single table that I want to select each row and group by one field and order by another.
Example:
blogger | blog text | blog date
jim blah 11/11/07
anna blah 11/10/07
chris blah 11/09/07
chris blah 11/08/07
jim blah 11/07/07
anna blah 11/06/07
I want to group by the blogger and date descending, BUT ALSO sort by which blogger has the newest entry
My output should be this:
jim blah 11/11/07
jim blah 11/07/07
anna blah 11/10/07
anna blah 11/06/07
chris blah 11/09/07
chris blah 11/08/07
What is the best way to produce my desired results?
Thanks