I have 3 tables as shown.
var table1 = new[]
{
new { Col1 = 1, Col2 = 'A', },
};
var table2 = new[]
{
new { Col1 = 'A', Col2 = 'X', },
new { Col1 = 'B', Col2 = 'Y', },
};
var table3 = new[]
{
new { Col1 = 1, Col3 = 'X', Col4 = 100, },
new { Col1 = 1, Col3 = 'Y', Col4 = 200, },
new { Col1 = 2, Col3 = 'X', Col4 = 400, }
};
Row needed -> 1, A, X, 100
I tried How to join 3 tables with linq which is not working.
Please help with the exact code. I am new to SQL.