Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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)?..

Answer / Vinay Sharma

You can use LINQ to calculate the average of student marks by using the Average() method in combination with From clause and the Where clause to filter the records. Here's an example: `var averageMarks = dbContext.Students.Where(student => student.StudentId > 0).Average(student => student.Marks);`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is expression tree in linq?

1 Answers  


Explain what is linq?

1 Answers  


What are the three main components of linq?

1 Answers  


What is the advantage of linq over stored procedures?

1 Answers  


What are the different ways to write linq query syntax?

1 Answers  


How can we find sequence of items in two different array (same type) in the same order using linq query?

1 Answers  


Explain how LINQ is useful than Stored Procedures?

1 Answers  


What is linq in ado net?

1 Answers  


What is system linq?

1 Answers  


What is linq used for?

1 Answers  


What is the Difference between LINQ and Stored Procedures?

1 Answers   Sans Pareil IT Services,


Write a program using linq to find the sum of first 5 prime numbers?

1 Answers  


Categories