MySQL Forums
Forum List  »  PHP

Re: Specific Query
Posted by: Nick Roper
Date: April 29, 2005 09:43AM

Hi Brett,

Try:

SELECT *, COUNT(*) AS numrecs FROM table
GROUP BY id HAVING numrecs = 1
ORDER BY create_t DESC;

Let me know if this works OK.

Cheers,

Nick

--
Nick Roper

Options: ReplyQuote


Subject
Written By
Posted
April 29, 2005 12:00AM
Re: Specific Query
April 29, 2005 09:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.