MySQL Forums
Forum List  »  Newbie

Re: SQL Query help
Posted by: Peter Brawley
Date: November 01, 2007 11:35AM

SELECT column1 FROM (
  FROM t 
  GROUP BY column1 
  HAVING count(*)=1
) AS tmp 
WHERE tmp.column2=0;

Edited 1 time(s). Last edit at 11/01/2007 12:43PM by Peter Brawley.

Options: ReplyQuote

Written By
November 01, 2007 11:02AM
Re: SQL Query help
November 01, 2007 11:35AM
November 01, 2007 02:00PM

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.