Claim your Biolink Click Here
3 like 0 dislike
342 views

I want to get the results/rows whose count is equal to 1 corresponding to ID

my data input

ID NAME
100 ABC
100 ABC
200 WHY
300 XYZ
300 XYZ
 

need below output

ID NAME
200 WHY

in Education & Reference by (830 points) | 342 views

2 Answers

0 like 0 dislike
Best answer
select * from (select count(t1.ID) as uniq_count, t1.*  from TABLE t1 group by ID) t2 where uniq_count =1
by (4.7k points)
0 like 0 dislike

select from (select count(cr.ID) as uniq_count, cr. from TABLE t1
group by ID) t2 where uniq_count =1

by (4.7k points)

Related questions

1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 26, 2015 in Education & Reference by Simmi (830 points) | 448 views
0 like 0 dislike
3 answers
asked Jan 20, 2014 in Education & Reference by Sam (1.6k points) | 1.9k views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,312 questions
1,473 answers
569 comments
4,809 users