Did you try it yourself. Look the awk code ganesh sent. $2 != "" tells you that if the second column is not empty. You can put an 'OR' condition and check for space in there.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.