this is what i want to achieve kindly help me
i want group or partition and rank according to the subject. Every subject must have 1st to last student.
Am using the codes below with vb 2010
am using this
Dim TotaledRecords = From p In db.Assessments
Where p.Class = cboclass.Text And p.Stream = cbostream.Text
Select p
Order By p.Total Descending
For j = 1 To TotaledRecords.Count
TotaledRecords.ToList(j - 1).Position = j
Next
db.SubmitChanges()
I want it to restart the ranking with respect to the subject
thank you
the picture is uploaded here
http://www.vbforums.com/showthread.php?855231-How-to-group-and-rank-with-reference-to-another-column&p=5231165#post5231165
thank you
sorry for disturbing
i want group or partition and rank according to the subject. Every subject must have 1st to last student.
Am using the codes below with vb 2010
am using this
Dim TotaledRecords = From p In db.Assessments
Where p.Class = cboclass.Text And p.Stream = cbostream.Text
Select p
Order By p.Total Descending
For j = 1 To TotaledRecords.Count
TotaledRecords.ToList(j - 1).Position = j
Next
db.SubmitChanges()
I want it to restart the ranking with respect to the subject
thank you
the picture is uploaded here
http://www.vbforums.com/showthread.php?855231-How-to-group-and-rank-with-reference-to-another-column&p=5231165#post5231165
thank you
sorry for disturbing