Click here to Skip to main content
15,881,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone please convert this query to linq query

SQL
SELECT i.CustomerID, i.InvoiceDate, i.InvoiceID, i.Particulars,
i.Value, i.TaxAmount, i.TotalAmount, col.ReceivedAmount,(i.TotalAmount-col.ReceivedAmount) as 'Balance Amount'  FROM 
(select invoiceid, SUM(receivedamount) as 'ReceivedAmount' from tbCollections group by invoiceid) col
JOIN tbInvoice i ON i.InvoiceID=col.InvoiceID


Thanx in advance..
Posted
Updated 3-Feb-12 18:40pm

1 solution

Here you go, check this article
Learn SQL to LINQ (Visual Representation)[^]
 
Share this answer
 
Comments
CRDave1988 4-Feb-12 1:49am    
5
ambarishtv 4-Feb-12 2:44am    
My +5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900