Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
Databases
10:10 pm Jul 10, 2026
This page requires javascript.
Forum Moderators:
open
Message Too Old, No Replies
How to Select NON-UNIQUE records
Gian04
Msg#:3439309
4:59 pm on Sep 2, 2007
(gmt 0)
Using the Distinct command you can select unique records, what if I want to retrieve all non unique?
Discovery
Msg#:3440505
6:55 am on Sep 4, 2007
(gmt 0)
you can use group by, like
SELECT department, COUNT(*) as "Number of employees"
FROM employees GROUP BY department;
In this if count value is greater than 1 (one) that mean its is non unique.
bcc1234
Msg#:3440533
8:08 am on Sep 4, 2007
(gmt 0)
select ... from ... group by ... having count(*)>1...
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Jun
,
May
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
July 2026 Google Search Observations
AI = New incoming wave of unemployment?
AdSense Earnings and Observations - July 2026
Annoying Crawler, Bot, or what?
How Would Someone Lock Onto A PDF
What strategies work to produce AI share of access?
Structuring Performance-Based Digital PR For Link Building
Do anything special today?
June 2026 Google Search Observations
Home
Forums Index
Server Side
/
Databases
10:10 pm Jul 10, 2026