|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
find duplicates problem
good day to all mods.
how can i fix this query to find duplicates on my table and count how many dumplicates each names. this is my query and has error: Code:
SELECT * FROM
(SELECT personality_nam_last || personality_nam_first || personality_nam_middle
AS "NAMES" FROM personalities)
AS foo
WHERE count(*) > 1;
error: Code:
Aggregates not allowed in WHERE clause |
|
#2
|
||||
|
||||
|
Example:
Code:
SELECT Field1 FROM TableName GROUP BY Field1 HAVING COUNT(*) > 1 |
|
#3
|
|||
|
|||
|
Quote:
whew! thats simple?! ![]() thanks for help! really appreciate it! |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > find duplicates problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|