Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.oracle    |    Overblown overpriced overengineered SHIT    |    2,288 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 928 of 2,288    |
|    .com to Ravindra Harve    |
|    Re: SQL to retrieve min value of the com    |
|    07 Jan 04 13:13:49    |
      From: mcstockX@Xenquery              question's a little vague, but assuming you are trying to get records for       the minimum values of the first and third column, for all rows in a table,       you could try a subquery like              select *       from x       where (col1, col3) in (        select col1, min(col3)        from x        group by col1        )              but don't try this until you understand why it works ;-)              -- mcs                     "Ravindra Harve" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca