MySQL Forums
Forum List  »  InnoDB

Re: Query with DISTINCT - logic?
Posted by: Ryan Lowe
Date: November 18, 2008 10:21AM

Something like this:?

mysql> SELECT * FROM `t` WHERE `identifier` = 12345 GROUP BY `address`\G
*************************** 1. row ***************************
email: joe@acme.com
address: 23 Elm Street
name: Acme Investing
street: San Diego
identifier: 12345
*************************** 2. row ***************************
email: john@blarney.com
address: 90 Oak Street
name: Blarney Capital
street: Berkeley
identifier: 12345
2 rows in set (0.00 sec)

Options: ReplyQuote


Subject
Views
Written By
Posted
3199
November 17, 2008 11:35AM
Re: Query with DISTINCT - logic?
2077
November 18, 2008 10:21AM
2029
November 19, 2008 12:15PM


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.