I am having table x.
x
............
id email first_name last_name
'''''''''''''''''''''''''''''''''''''''
1 [email protected] Martin Robert
2 [email protected]
3 [email protected] Sam Anderson
I am using following query and the output is:
select id, CONCAT(first_name, ' ', last_name) from a;
The output is
.......................................
id CONCAT(first_name, ' ', last_name)
'''''''''''''''''''''''''''''''''''''''
1 Martin Robert
2
3 Sam Anderson
I Want to ignore the row which has both first_name and last_name is empty in CONCAT().
My output will be as follows
.......................................
id CONCAT(first_name, ' ', last_name)
'''''''''''''''''''''''''''''''''''''''
1 Martin Robert
3 Sam Anderson
Thanks in advance.