SELECT * from result FULL OUTER JOIN registration ON registration.ID = result.registrationID WHERE registration.username='"+TextBox1.Text+"'
U have to maintain the "userid" column in both table.
select * from registation t1,result t2 where t1.username='"+TextBox1.Text+"' and t1.userid=t2.userid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)