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 lambda expression in linq?

1 Answers  


How standard query operators useful in linq?

1 Answers  


what is the difference between N-layer and N-tier architecture in LINQ?

1 Answers  


What is difference between linq and sql entity framework?

1 Answers  


Is linq a programming language?

1 Answers  


What is difference between linq and entity framework?

1 Answers  


what is LINQ? Why is it required?

1 Answers  


Explain how LINQ is useful than Stored Procedures?

1 Answers  


Which command-line tool generates code and mapping for the LINQ to SQL component of .NET Framework?

1 Answers  


What is difference between linq and lambda expression?

1 Answers  


What is a lambda expression?

1 Answers  


Explain what is select clause and where clause in linq?

1 Answers  


Categories