I have the below SQL statement that works as desired/expected. However I would like to translate it into a LINQ statement(Lambda??) so that it will fit with the rest of my
Here's a sample that shows how I would simulate Rank() in Linq:
var q = from s in class.student
orderby s.Age descending
select new {
Name = s.name,
Rank = (from o in class.student
where o.mark > s.mark
select o).Count() + 1
};