Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3443164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:45:28+00:00 2026-05-18T08:45:28+00:00

i have an table like this with columns and values now i neeed to

  • 0

i have an table like this with columns and values now i neeed to get the output

like this

ID  DEPID  Address   Name 
1    1      abc      ram,kumar
1    1      abc      ram,kumar
2    2      abc      vinay
3    2      xyz..    kiran,kumar
4    6      xyz..    anu
5    9      xyz..    pavithra
6    9      xyz..    pavithra,anitha
6    9      xyz..    pavithra,anitha
6    9      xyz..    pavithra,anitha
7    9      xyz..    manu,vachan
7    9      xyz..    manu,vachan
7    9      xyz..    manu,vachan

now i need output like this

ID  DEPID  Address   Name 
1    1      abc      ram,kumar
2    2      abc      vinay
3    2      xyz..    kiran,kumar
4    6      xyz..    anu
5    9      xyz..    pavithra
6    9      xyz..    pavithra,anitha
7    9      xyz..    manu,vachan

pls help me how to get the Query for this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:45:28+00:00Added an answer on May 18, 2026 at 8:45 am

    You should use the DISTINCT for this.

    SELECT ID,DEPID,Address, DISTINCT Name FROM ...
    

    Probably something like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on Oracle. I have this large property-indexer table ( THE_TABLE ),
I have a table with the following structure: (table_name, column_name) and for each row
I am working on SSRS reporting services. I have a table on which I
I am using repeater to bind all table data. And My table fields are
I am trying to write a query to create a 'table' of data as
I got a great response the last time I posted here. I have the
I do not know how to classify this question. Vaguely, its about using calculated
imagine the following problem in grails you have some kind of audit trail domain
I've got and sql express database I need to extract some data from. I
Is there any possibility to use an after update trigger only in the case

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.