linqtosqlクエリの実行に問題があります。ご覧ください。
これが私のコードです:
SELECT c.client_name,
n.instrument_group_id,
n.trade_date,
sum(n.buy_qty) AS TotBuyQty,
sum(convert(float,n.buy_value) + convert(float,n.buy_brokerage)) AS TotBuyVal,
sum(n.sell_qty) AS TotSellQty,
sum(convert(float,n.sell_value) - convert(float,n.sell_brokerage)) AS TotSellVal,
sum(convert(float,n.sell_value) - convert(float,n.sell_brokerage))- sum(convert(float,n.buy_value) + convert(float,n.buy_brokerage)) AS ProfitLoss
FROM nse_fo_transaction AS n
LEFT JOIN client_master AS c ON n.client_id = c.client_id
WHERE n.client_id = 5
AND n.trade_date BETWEEN '09/01/2012' AND '09/19/2012'
GROUP BY c.client_name,
n.instrument_group_id,
n.trade_date
ORDER BY n.trade_date