Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,199 of 19,505    |
|    Bob Barrows to Henk van den Berg    |
|    Re: I Need help with a query...    |
|    05 Apr 11 07:40:35    |
      From: reb01501@NOSPAMyahoo.com              Henk van den Berg wrote:       > On 05-04-2011 13:17, Bob Barrows wrote:       >       >> Are 'W' and "T" the only allowable types? If so:       >>       >> SELECT min(id),Contr,max(Type)       >> FROM table       >> GROUP BY Contr       >> HAVING max(Type)<>'T'       >>       >>       >       > When I run that, the resultset contains 1250 which should be excluded       > since there's a row with 1250, T              Oh duh! It should have been              HAVING min(type) <> 'T'              sorry - I should have tested              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca