Solved

How to find none distinct values with SQL

Posted on 2008-10-18
1
172 Views
Last Modified: 2010-03-19
Hi.
I have a table with two columns. I have to find the ident and group name where there is the same ident within the same group more than once.
Group    Ident
A            10
B             30
C             23
C             10
C             23
D             10
In this case the result should be
C      23
regards
Oli
0
Comment
Question by:tolvudeild-VS
1 Comment
 
LVL 14

Accepted Solution

by:
Binuth earned 125 total points
ID: 22747827
try this
SELECT [Group],[Ident]

FROM TableName

GROUP BY [Group],[Ident]

having count([Ident]) > 1

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now