grouping sorting ordering

After more fooling around, I found that this yields something ordered by the first field:

select REPLACE(eMail, '- ', '') AS Email, IFNULL(foreignKey, '') AS "Foreign Key", "Full Name", "List Membership"
from PHPLIST2 AS Z
WHERE eMail IS NOT NULL
GROUP by REPLACE(eMail, '- ', '')

Is this the only way?


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2 [at] m.gmane.org
(Sándor Halász) hsv [ Mo, 04 April 2011 14:04 ] [ ID #2057534 ]
Datenbanken » gmane.comp.db.mysql.general » grouping sorting ordering

Vorheriges Thema: Displaying date/time
Nächstes Thema: grouping sorting ordering