Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with SP
Message
From
11/11/2013 09:10:11
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Environment versions
SQL Server:
SQL Server 2000
Application:
Web
Miscellaneous
Thread ID:
01587728
Message ID:
01587736
Views:
43
>Hi all, I need to retrieve the largest value from one of my tables in SS, my code is shown below
>
>
>Select ClaimRef,max(Claim.AdmittedValUSD) as admval from claim
>group by ClaimRef
>
>
>
>I expected to get 1 record but receive thousands ? any idea why ?
>ClaimRef is unique PK
try

SELECT TOP 1.* FROM claim ORDER BY claim.AdmittedValUSD desc
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform