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: 7.0.6
Show newest version
<?xml version="1.0"?>

<custom-sql>
	<sql id="com.liferay.polls.service.persistence.PollsQuestionFinder.countByC_G_T_D">
		<![CDATA[
			SELECT
				COUNT(DISTINCT PollsQuestion.questionId) AS COUNT_VALUE
			FROM
				PollsQuestion
			WHERE
				(PollsQuestion.companyId = ?) AND
				[$GROUP_ID$]
				(
					(lower(PollsQuestion.title) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(PollsQuestion.description LIKE ? [$AND_OR_NULL_CHECK$])
				)
		]]>
	</sql>
	<sql id="com.liferay.polls.service.persistence.PollsQuestionFinder.findByC_G_T_D">
		<![CDATA[
			SELECT
				{PollsQuestion.*}
			FROM
				(
					SELECT
						DISTINCT PollsQuestion.questionId
					FROM
						PollsQuestion
					WHERE
						(PollsQuestion.companyId = ?) AND
						[$GROUP_ID$]
						(
							(lower(PollsQuestion.title) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(PollsQuestion.description LIKE ? [$AND_OR_NULL_CHECK$])
						)
				)
				TEMP_TABLE
			INNER JOIN
				PollsQuestion ON
					TEMP_TABLE.questionId = PollsQuestion.questionId
			ORDER BY
				PollsQuestion.questionId DESC
		]]>
	</sql>
</custom-sql>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy