Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Reversals - Select Duplicate qry doesn't work

Status
Not open for further replies.

SusanStoHelit

Technical User
Jan 26, 2006
15
US
I work with claims data, and I need to be able to analyze data on claims that we have actually paid.

In our data there are some claims that were paid and later reversed, or paid, reversed, and paid again (for a different or same amount) with the same ID number.

Is there a way to select and eventually delete the claims that have the same ID number and the same absolute claim amount?

I tried combining this criteria:

In (SELECT [ID_Number] FROM
As Tmp GROUP BY [ID_Number] HAVING Count(*)>1 )

With this criteria:

In (SELECT (ABS[ClaimAmount]) FROM [AUGMENTIN 2005] As Tmp GROUP BY (ABS[ClaimAmount]) HAVING Count(*)>1 )

And I get a sybtax error. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top