I have a view I want to select those records whose (Letter
, pro
, record
, and education
) column values are not null
.
For details, I want to check record MI13900454 that his (Letter
, pro
, record
, and education
) should not be null. Note: if we select ... from xxx where record_id is not null and letter_id is not null .....
it is not correct because values are not in same row - they are in different rows and columns.
Plaintext table:
| ID | LETTER_ID | MEDICAL_ID | SICKNESS_ID | PRO_ID | EDU_ID | TRAINING_ID | RECORD_ID | NID |
|-----------|-----------|------------|-------------|---------|--------|-------------|-----------|--------|
| MI1390454 | | | | | | 47584 | | |
| MI1390454 | | | | 4673735 | | | | |
| MI1390033 | | | | 105419 | | | | |
| MI1390033 | | | | | | | | |
| MI1390033 | | | | | | | | |
| MI1390033 | 299080 | | | | | | | |
| MI1390033 | | | | | 659652 | | | |
| MI1390033 | | 309609 | | | | | | |
| MI1390033 | | | | | | | | |
| MI1390033 | | | | | | | | |
| MI1390033 | | | | | 659650 | | | |
| MI1390033 | | | | | 659654 | | | |
| MI1390033 | | | | | | | | 161077 |
| MI1390033 | | 309608 | | | | | | |
| MI1390033 | | | | | 659651 | | | |
| MI1390454 | | | | | | | 154745 | |
| MI1390033 | | | | | 659653 | | | |
| MI1390033 | | | | | | | | |
| MI1390033 | | | | | | | | |
| MI1390033 | | | | | | | 94272 | |
| MI1390033 | | | | | | 44917 | | |
| MI1390033 | | | | 105418 | | | | |