All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.custom-sql.default.xml Maven / Gradle / Ivy

There is a newer version: 3.0.79
Show newest version
<?xml version="1.0"?>

<custom-sql>
	<sql id="com.liferay.portal.workflow.metrics.service.persistence.WorkflowMetricsSLADefinitionVersionFinder.findByC_CD_P_S">
		<![CDATA[
			SELECT
				WMSLADefinitionVersion.*
			FROM
				(
					SELECT
						WMSLADefinitionVersion.wmSLADefinitionId, MAX(WMSLADefinitionVersion.wmSLADefinitionVersionId) AS wmSLADefinitionVersionId
					FROM
						WMSLADefinitionVersion
					WHERE
						(WMSLADefinitionVersion.companyId = ?) AND
						(WMSLADefinitionVersion.createDate <= ?) AND
						(WMSLADefinitionVersion.processId = ? ) AND
						(WMSLADefinitionVersion.status = ? )
					GROUP BY
						WMSLADefinitionVersion.wmSLADefinitionId
				)
				TEMP_TABLE
					INNER JOIN
						WMSLADefinitionVersion ON
							TEMP_TABLE.wmSLADefinitionVersionId = WMSLADefinitionVersion.wmSLADefinitionVersionId
		]]>
	</sql>
</custom-sql>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy