Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2002
    Location
    Mumbai
    Posts
    19

    Unanswered: Query for finding out a repated number in the column

    what is the query in DB2 to --

    Find out a repeated number in a column which has around 100 numbers

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: Query for finding out a repated number in the column

    If i is the column against which you wish to test,

    select i,count(i) from <tablename> group by i

    This will give the value of i and the number of rows i have that value ...

    Cheers

    Sathyaram



    Originally posted by aspathak
    what is the query in DB2 to --

    Find out a repeated number in a column which has around 100 numbers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •