Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Sub Query /Getting SUM

$
0
0

Hai All,

Hope you guys are doing well. Here I have an issue with my LINQ query basically I need to get the sum of a column and some other columns values and for that the SQL query would be like this.

SELECT t.*,(SELECT SUM(Nilai) FROM Nilai WHERE EventUjian_Id = t.EventUjian_Id)
FROM EventUjian t

Can you guys please help me with the LINQ query for this.

Thanks 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>