I have two tables :
Table 1
Code name
306 group1
310 group2
390 group3
520 group4
Table 2
Code details minidetails
310 y n
305 y n
312 y n
My result should be
310 y n group2
305 y n
312 y n
But when I join the tables i am getting
310 y n group2
305 y n group2
312 y n group2
Even though 305,312 does not have records in table1 its appending the value of 310 to 305 and 312. Why is this happening?
Table 1
Code name
306 group1
310 group2
390 group3
520 group4
Table 2
Code details minidetails
310 y n
305 y n
312 y n
My result should be
310 y n group2
305 y n
312 y n
But when I join the tables i am getting
310 y n group2
305 y n group2
312 y n group2
Even though 305,312 does not have records in table1 its appending the value of 310 to 305 and 312. Why is this happening?