Hi Jeff,
Its close and does exactly what it says. However it does not return the whole row which is what i need.
is there a way to do this
Main Topics
Browse All TopicsHallo,
I would like to select data from a database using 'Select * " based on a value in a row (same column)being unique.
By that I mean that that data must not repeat again. Idealy I would like to set the number my self so rather then unique I could say
select the rows from the database only if the uniquevalue does not repeat more then x number of times.
eg
Value A
Value B
Value C
Value B
Value B
Value C
So if I wanted to set the uniquness to 1 then only row with Value A would be collected.
If I set the uniquenss to =<2 then I would get data from rows with value A and C so
3 rows returned.
I have this so far
SELECT *
FROM SingleS.mdb
GROUP BY Uniquevalue
HAVING count(*) = 1
it doesent work I get agregat something error.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi I used ryancy's solution but from Jeffs solution it looks like it has simmilar properties.
I hope that you find the point split acceptable.
The final solution I used was a little different and its bellow:
SELECT Uniquevalue
FROM YourTable Where Uniquevalue in (Select * from YourTable Group By Uniquevalue Having Count(Uniquevalue) = 1)
This does, or looks like it does (still checking the output) that it selects all data on a row that is unique and doesent repeat.
Thank you so much for your help.
Im starting to see that this is the best money I could have ever spent
Business Accounts
Answer for Membership
by: JeffSturgeon2002Posted on 2008-01-03 at 18:10:33ID: 20579230
SELECT Uniquevalue
FROM SingleS.mdb
GROUP BY Uniquevalue
HAVING count(*) = 1