SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot websalacarta's Avatar
    Join Date
    May 2003
    Location
    Spain
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    repeated values?

    hi, Im using oracle,

    Id like to have the repeated columns

    example:

    Code:
    id           value
    1              5
    2              5
    3              8
    4              9
    5              3
    6              8
    Id like to have this result:
    Code:
    value
    5
    8
    any help?
    thanks

  2. #2
    SitePoint Guru
    Join Date
    Jan 2004
    Location
    Uppsala, sverige
    Posts
    697
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Code:
    select value 
    from t
    group by value
    having count(*) > 1


Bookmarks

Posting Permissions

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