I have two tables: table1,table2 as given below
table1:
id name
1 tamil
2 english
3 maths
4 science
table2:
p1 p2 p3 p4 stat name
1 2 4 3 A raja
2 3 4 1 A maha
my expected output is
p1 p2 p3 p4
tamil english science maths
english maths science tamil
can some one help me to find out the exact query.That should use left outer join.