SELECT * FROM zzzzsys_form
WHERE sfo_type IN ('edit', 'browseedit', 'launch')
AND (
    SUBSTRING(zzzzsys_form_id, 1, 2) != 'nu'
    OR zzzzsys_form_id = 'nublank'
    OR zzzzsys_form_id = 'nuuserhome'
    )
ORDER BY sfo_code
