| 75 | |
| 76 | W10. |
| 77 | -- Sprawdzenie czy cechy są ustawione w sprawie (jeśli są to TRUE) - dla warunku przeciwnego należy zamienić "IS NOT NULL AND ..." na "IS NULL OR .. " |
| 78 | SELECT ftv1.data__ IS NOT NULL |
| 79 | AND ftv2.data__ IS NOT NULL |
| 80 | AND ftv3.data__ IS NOT NULL |
| 81 | AND ftv4.data__ IS NOT NULL |
| 82 | FROM processes p LEFT JOIN features_text_view ftv1 ON ftv1.tbl_id = p.prc_id AND ftv1.featid = 29 |
| 83 | LEFT JOIN features_text_view ftv2 ON ftv2.tbl_id = p.prc_id AND ftv2.featid = 30 |
| 84 | LEFT JOIN features_text_view ftv3 ON ftv3.tbl_id = p.prc_id AND ftv3.featid = 31 |
| 85 | LEFT JOIN features_text_view ftv4 ON ftv4.tbl_id = p.prc_id AND ftv4.featid = 32 |
| 86 | WHERE p.prc_id = {PRC_ID} |