CREATE VIEW VWPMO_GUI_ENTITY AS 
SELECT TOP 100 PERCENT
	TBPMO_FORM.GUID AS ID, 
	TBPMO_FORM.NAME AS Name, 
	TBPMO_FORM_VIEW.FORM_TITLE AS Title
FROM            
	TBPMO_FORM INNER JOIN
    TBPMO_FORM_VIEW ON TBPMO_FORM.GUID = TBPMO_FORM_VIEW.FORM_ID
WHERE
	(TBPMO_FORM.FORM_TYPE_ID IN (1, 2, 3, 5))
ORDER BY 
	TBPMO_FORM.PARENT_ID, Title