DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: sql to eliminate duplicate values

  1. #1
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    Hi friends,
    I have two columns which contain duplicate values

    cl c2
    1 a
    1 a
    1 a
    2 b
    2 b
    2 b
    3 c
    3 c
    3 c

    Now i want to select distinct from these two columns.

    please give the query.I know that its simple but please help me.

    regards
    anandkl
    anandkl

  2. #2
    Hi,

    try this:

    select distinct c1,c2 from tablename;

    hope this help you.

    regards,
    feroz

  3. #3
    Join Date
    Jan 2002
    Posts
    148
    select distinct c1||c2 from tablename;


    thanx
    Jr.

Posting Permissions

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


Click Here to Expand Forum to Full Width