How can you find average of student marks from student tables (Columns are StudentID, Marks)?

How can you find average of student marks from student tables (Columns are StudentID, Marks)?

(C#)
Public void LinqToSqlAverage()
{
   var query = (from p in db. student. Marks).Average();

   Console.WriteLine(q);
}
What is Lambda Expressions? How can we optimize our linq code using this Expression?
Lambda expressions can be considered as a functional superset of anonymous methods, providing the following additional functionality........
What is “OfType” in linq?
What is “OfType” in linq?
How can we find Sequence of Items in two different array (same Type) in the same order using linq query?
How can we find Sequence of Items in two different array (same Type) in the same order using linq query?
Post your comment