|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Aggregate Query
Hi
I am stuck with a problem. consider this Name--NoOfHrs----Rate--SeqNo --X------10--------10----1 --X-------5--------12----2 --Y------10--------20----3 --Y------10--------10----4 I need to report it like this Name ToTNoOfHrs Rate TotAmount -X--------15--------12-----160 -Y--------20--------10-----300 The problem is, I have to select the Rate which is most recent i.e which has the highest seqNo. So what shld be the Clause PHP Code:
Please help. Thanks bbarath Last edited by bbarath : April 12th, 2004 at 12:52 PM. |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Aggregate Query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|