<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to pass two parameters in Custom SQL query.?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110425338" />
  <subtitle>How to pass two parameters in Custom SQL query.?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110425338</id>
  <updated>2026-04-07T00:25:48Z</updated>
  <dc:date>2026-04-07T00:25:48Z</dc:date>
  <entry>
    <title>RE: How to pass two parameters in Custom SQL query.?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110564123" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110564123</id>
    <updated>2018-07-15T11:48:40Z</updated>
    <published>2018-07-15T11:48:40Z</published>
    <summary type="html">&lt;p&gt;Thanks for your reply Vishal.&lt;/p&gt;</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2018-07-15T11:48:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to pass two parameters in Custom SQL query.?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110429462" />
    <author>
      <name>Vishal Munjani</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110429462</id>
    <updated>2018-07-11T10:42:14Z</updated>
    <published>2018-07-11T10:42:14Z</published>
    <summary type="html">&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Refer below url.Needs to add your query in default.xml and Use
  QueryPos for parameter.&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/custom-sql"&gt;https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/custom-sql&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Vishal Munjani&lt;/p&gt;</summary>
    <dc:creator>Vishal Munjani</dc:creator>
    <dc:date>2018-07-11T10:42:14Z</dc:date>
  </entry>
  <entry>
    <title>How to pass two parameters in Custom SQL query.?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110425337" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110425337</id>
    <updated>2018-07-11T06:03:04Z</updated>
    <published>2018-07-11T06:03:04Z</published>
    <summary type="html">&lt;p&gt;Hai,&lt;/p&gt;
&lt;p&gt;Here i have two tables&lt;/p&gt;
&lt;p&gt;1.candidatedetails&lt;/p&gt;
&lt;p&gt;2.jobcandidatemapping&lt;/p&gt;
&lt;p&gt;if i want to execute this below sql query, how to write query in .xml page?&lt;/p&gt;
&lt;p&gt;SELECT * FROM candidatedetails a, jobcandidatemapping b where
  a.candidateName like '%a4%' and a.candidateId=b.candidateId and b.jobId=127408;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2018-07-11T06:03:04Z</dc:date>
  </entry>
</feed>
