retrieving the record which has only one value

Posted by ashwani66476 on Stack Overflow See other posts from Stack Overflow or by ashwani66476
Published on 2010-04-07T08:11:47Z Indexed on 2010/04/07 8:13 UTC
Read the original article Hit count: 182

Filed under:

Hello All,

Please suggest me a query, which retrieves only those record which has the single row in table. For Example table1. name age aaa 20 bbb 10 ccc 20 ddd 30

If I run "select distinct age from table1. result will be age 20 10 30

But I need a query, which give the result like

name age bbb 10 ddd 30

Thanks....

© Stack Overflow or respective owner

Related posts about database