group by and order

This is a discussion on group by and order within the MySQL Database forums, part of the Database Forums category; hi all why if i make a select with "group by" and "order by id desc" ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-13-2006
j0sh
 
Posts: n/a
Default group by and order

hi all

why if i make a select with "group by" and "order by id desc" mysql
select ever the first id and not the last?

example

select *.a,*.b from a,b where a.id=b.id group by a.id desc
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0