AS SELECT DDCLElement.name as TpService, DDCLValue.referencename as Application, 
          DDCLElement.DdsTypeId
from DDCLValue INNER JOIN DDCLElement ON DDCLValue.ElementId=DDCLElement.Id
where DDCLElement.DdsTypeId=24
	 and DDCLValue.referenceddstypeid=25
group by DDCLElement.name, DDCLValue.referencename,DDCLElement.DdsTypeId 
order by DDCLElement.name, DDCLValue.referencename
