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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to Capture MIN CLAIM ID - SQL Server

Status
Not open for further replies.

rbcasper

Technical User
Jul 21, 2013
5
0
0
US
I need to capture records with the minimum claim ID where provider, diagnosis, and billed amount are the same but claim id and check id are different.
EXAMPLE:
CLAIM ID DOS PROVIDER DIAGNOSIS BILLED AMOUNT CHECK#
2001 02/05/2011 500 252.5 30.00 35
2015 02/05/2011 500 252.5 30.00 56

On this example, I would need to capture the record with Claims ID 2001.

Any help is greatly appreciated.

rb
 
This would be more for the sql server forum and I would imagine they will want a bit of detail about table structures etc

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top