tags:

views:

8

answers:

0

Hi,

I have this condition in mysql query

SELECT col1,col2,col3,col4 FROM table1 -> this I select produces 5 rows (R1,R2,R3,R4,R5) where (C1,c2,c3 are null) UNION SELECT col1,col2,null,null FROM table2; -> this II select produces 2 rows (R4,R5) where (C1,c2,c3 are not null)

Is there any way to remove the duplicate and show the entry value without null?

I want to send the query result with total of 5 rows with values for last 2 rows instead of total 7 rows.

Thanks.