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 694 of 2,288    |
|    mcstock to All    |
|    Re: Sql select question    |
|    19 Nov 03 17:27:55    |
      From: mcstockspamplug@spamdamenquery.com              this is a good application of decode -- do your GROUP BY and use DECODE       twice in the HAVING clause -- both nested in a COUNT() functions, one which       computes a count of #1512 accounts, one that computes a count of #6040       accounts -- your HAVING clause should qualify rows where these counts are       not equal              see recent references to PIVOT queries for similar examples              let me know if you need further help              -- mcs              "andy vandenberghe" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca