Home : General : Databases and SQL :

General: Databases and SQL: Re: [suzypen] SQL DISTINCT Help!: Edit Log

Here is the list of edits for this post
Re: [suzypen] SQL DISTINCT Help!
Yes it does. You need to use a programming language like perl I expect, to handle this. I don't think you can do everything you want with just an SQL query.

You'd probably want to do a SELECT DISTINCT(UserID) From Table and then loop the results and within the loop perform a select on the Group column using the user id for the current loop iteration - that would grab all the groups for each user - you would then store them in a perl structure like a hash.

Last edited by:

Paul: Mar 18, 2003, 9:24 AM

Edit Log: