inquisite
DW Fresher
Reputation: +3/-0
Offline
Posts: 7
|
 |
« on: January 18, 2010, 09:26:31 pm » |
|
I would like to select rows with (NULL & non-NULL) combination
student_course table
id,student,subject 1, 100, NULL 2,100, Science 3,200, Mathematics 4,200, science 5, 300, English 6, 400, NULL 7, 500, Mathematics 8, 500, NULL 9, 600, Science
Desired output:-
id,student,subject 1, 100, NULL 2, 100, Science 7, 500, Mathematics 8, 500,
I do not want to select the row with student id 400 as it only contains NULL. I would like to see a combination of NULL & not null values.
Any help is appreciated.
|