Hi.
We have query on count basis like:
select @intCount= count(*) from TableName.
While(@intCount>0)
Begin
SET @SQL='SELECT [USER],COUNT(ID) AS FCount,MAX(TimeWritten) As MaxDT'
SET @SQL=@SQL+ ' FROM '+@TABLENAME
set @intCount=@intCount-1
End
Now in place of @TABLENAME, I want to show fetch row count of columns in table.
For exp : We found count 3, then first fetch column of third row in table, then second row.. so on..
Thanks