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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 returning records 7 through 12

Author  Topic 

hameed
Starting Member

40 Posts

Posted - 2001-10-20 : 10:20:03
I have exactly 12 records in a table at all times. I want to return records 7 through 12. How do i do that? I can return the first 6 records no problem using code like this:

SET ROWCOUNT 6

SELECT DailyAnalysisID, CurrencyType, Description, LongTermTrade, ShortTermTrade, SupportMn, SupportIn, SupportMj, ResistanceMn, ResistanceIn, ResistanceMj, InputDate
FROM DailyAnalysis
ORDER BY DatePosted DESC

But I don't know how to return records 7 to 12. Please help

   

- Advertisement -