Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2005, 02:43 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Distinct data

Hi everyone!!
I have a table that looks like as follows :

memberName3 memberDesig3
----------- ------------
Sanjay Bagaria D011
Vinay Kumar Agarwal D011
Deepak Choudhary, Raghupati Bhuwalka D011
Ramesh Kumar Khaitan D011
Raghupati Bhuwalka, Ramesh Kumar Khaitan D011
Raghupati Bhuwalka, Ronaq Gupta D011
Raakesh Jain, Vikas Tibrewal D011
Naresh Kumar Jalan, Ramesh Kumar Khaitan D011
Ramesh Goenka, Siddharth Jain D011
Dr. Ram Pal Widhawan, Nathmal Nevatia, Sanjay Chiraniwala D011
Mahesh Kr. Shah, Padam Kumar Agarwal, Sanjay Bagaria D011
Hemant Manek, Ramesh Goenka D011
Aniruddh Daga, Ashok Chowdhary, Raakesh Jain D011
Ashok Chowdhary, Jogindar Raj Agarwal D011
Siddharth Jain D011
Harkesh Gupta D011
Vikram Doogar D011
Anil Pargal, Pradeep Rawat D011
Sunil Poddar D011
Siddharth Jain, Viren Mehra D011


I need a query which will return me only the distinct names i.e each name will appear only once in a row and one row will contain only one name which means that distinct rows for distinct rows.

the repeations of the names separated by "," has to be remeoved.

I need only one column Member to be returned by the query.

Hope this can be done?
Thanks in advance.
 
Old September 21st, 2005, 06:02 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

arnabghosh,

I gave you the code to do this type of operation in your last posting for distinct column values. You can use the same type of code to do this.

Kevin


dartcoach
 
Old September 21st, 2005, 10:46 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You should also consider normalizing your data.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
distinct data from XML using XSL Hughesie78 XSLT 5 November 20th, 2007 10:25 AM
Distinct Eddywardo SQL Server 2005 1 September 2nd, 2006 07:41 AM
Distinct values of data arnabghosh Access 18 September 13th, 2005 05:41 PM
Distinct SELECT DISTINCT question... EndEffect Classic ASP Databases 4 August 18th, 2005 08:53 AM
Select distinct data from one column madkaikar_ashish SQL Server 2000 1 December 17th, 2004 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.