home bbs files messages ]

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 1,072 of 2,288   
   Galen Boyer to nbsj67@yahoo.com   
   Re: SQL Query - Selecting records that r   
   11 Feb 04 22:28:07   
   
   XPost: comp.databases.oracle.misc   
   From: galenboyer@hotpop.com   
      
   On 11 Feb 2004, nbsj67@yahoo.com wrote:   
   > I need to find customer's names that repeat / occur more than   
   > once in the same table. I have treid many options and I have   
   > tried comparing the column to itself but Oracle gives me an   
   > error.   
      
   select cust_nm, count(*)   
   from table   
   group cust_nm   
   having count(*) > 1;   
      
   --   
   Galen Boyer   
      
   --- 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