Viewing 8 posts - 1 through 8 (of 8 total)
I need on a further query. How to select TOP-N SQL statements between two periods.
Something like if I would want to select 6th to 10th student in this following table.
create...
June 9, 2009 at 11:59 am
This would not work in SQL 2000, 'ROW_NUMBER' is not a recognized function name.
June 9, 2009 at 8:18 am
I am not this expert in SQL to be able to discuss further on the design issues and flaws of the SQLServer 2000, but I am happy that this forum...
June 7, 2009 at 9:39 pm
Sorry doesn't work yet here. Two possibilities were brought up by Marcus - "case sensistive collation? " and Jeff - "left over #Temp table in the current connection"
To be sure...
June 5, 2009 at 11:00 pm
Barry, I am doing this in SQL 2000, don't have 2005/08
Using you code and changing the table name from yourtable to #temp,
and using #temp table creation, I am getting this...
June 5, 2009 at 1:14 am
Barry, your code has some issue and does not run in SQ 2000.
The error given is
Invalid column name 'studentID'.
create table #temp
(
studentID int,
subjectID int,
subjectMark int
)
insert into #temp
select 1, 1,...
June 4, 2009 at 11:57 pm
Its the same way as SQLServer brings out top 4 rows, deciding internally on the tie breaker.
SELECT TOP 4 subjectMark
FROM ...
June 4, 2009 at 9:30 pm
Viewing 8 posts - 1 through 8 (of 8 total)