Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IF(tbl_category.survey_id = 4,
- IF(tbl_category.id = 4 OR tbl_category.id IS NULL,
- IF(parent_category.survey_id = 4 OR parent_category.survey_id IS NULL, parent_category.id, 'Uncategorized'),
- IF(tbl_category.survey_id = 4 OR tbl_category.survey_id IS NULL, tbl_category.id, 'Uncategorized')
- ),
- IF(parent_category.id = 4 OR parent_category.id IS NULL,
- IF(tbl_category.survey_id = 4 OR tbl_category.survey_id IS NULL, tbl_category.id, 'Uncategorized'),
- IF(parent_category.survey_id = 4 OR parent_category.survey_id IS NULL, parent_category.id, 'Uncategorized')
- )
Add Comment
Please, Sign In to add comment