DISTINCT - ORDER BY fields change result set

2001-09-30 Thread Ralph Graulich
Hi, I encountered a problem with a DISTINCT query (mySQL-3.23.42). I need to order by a field not contained in the field set of the SELECT clause. The following query works correctly: SELECT DISTINCT p.lastchanged AS lastchanged, p.dam_id AS dam_id, d.dam AS dam,

Re: DISTINCT - ORDER BY fields change result set

2001-09-30 Thread Benjamin Pflugmann
Hi. This behaviour is described in http://www.mysql.com/doc/B/u/Bugs.html. You can circumvent the behaviour with an temporary table for saving the intermediate result. Bye, Benjamin. On Sun, Sep 30, 2001 at 12:50:37PM +0200, [EMAIL PROTECTED] wrote: Hi, I encountered a