Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AndyC
Yak Posting Veteran
53 Posts |
Posted - 2006-03-25 : 11:02:45
|
| From a table of soccer results, I want to obtain the most recent say 6 results for each teamSomething likeSELECT TOP 6 teamID, gamedateFROM tblMatch WHERE teamID = 'Arsenal'Order by gamedate descgives one teambut I cannot seem to set a query that producesexactly six for each of the twenty clubs or so I want to incorporateAndrew Clarkwww.majorleaguecharts.com |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-03-25 : 11:58:29
|
http://weblogs.sqlteam.com/mladenp/archive/2005/08/01/7421.aspxpoint 2.Go with the flow & have fun! Else fight the flow |
 |
|
|
AndyC
Yak Posting Veteran
53 Posts |
Posted - 2006-03-25 : 14:49:45
|
| ThanksJust what the doctor ordered.That is a nice set of solutionsAndrew Clarkwww.majorleaguecharts.com |
 |
|
|
|
|
|