<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to declare SQl  variables in Qlik sense script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1822631#M67460</link>
    <description>&lt;P&gt;How can I declare the SQL variable below in Qlik sense script and use them in the SELECT statement.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;DECLARE @startDate DATETIMEOFFSET = NULL&lt;BR /&gt;&amp;nbsp;DECLARE @endDate DATETIMEOFFSET = NULL&lt;BR /&gt;&amp;nbsp;DECLARE @transactionDateTimeFromLocal DATETIME = CONVERT(DATETIME, SWITCHOFFSET(@startDate, '+00:00'))&lt;BR /&gt;DECLARE @transactionDateTimeToLocal DATETIME = CONVERT(DATETIME, SWITCHOFFSET(@endDate, '+00:00'));&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 07:59:35 GMT</pubDate>
    <dc:creator>sims</dc:creator>
    <dc:date>2021-07-16T07:59:35Z</dc:date>
    <item>
      <title>How to declare SQl  variables in Qlik sense script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1822631#M67460</link>
      <description>&lt;P&gt;How can I declare the SQL variable below in Qlik sense script and use them in the SELECT statement.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;DECLARE @startDate DATETIMEOFFSET = NULL&lt;BR /&gt;&amp;nbsp;DECLARE @endDate DATETIMEOFFSET = NULL&lt;BR /&gt;&amp;nbsp;DECLARE @transactionDateTimeFromLocal DATETIME = CONVERT(DATETIME, SWITCHOFFSET(@startDate, '+00:00'))&lt;BR /&gt;DECLARE @transactionDateTimeToLocal DATETIME = CONVERT(DATETIME, SWITCHOFFSET(@endDate, '+00:00'));&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 07:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1822631#M67460</guid>
      <dc:creator>sims</dc:creator>
      <dc:date>2021-07-16T07:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to declare SQl  variables in Qlik sense script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1911215#M75093</link>
      <description>&lt;P&gt;hi!, i have the same doubt, did you solve it?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1911215#M75093</guid>
      <dc:creator>dbodlovich</dc:creator>
      <dc:date>2022-03-29T13:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to declare SQl  variables in Qlik sense script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1911223#M75094</link>
      <description>&lt;P&gt;You can use SET or LET to set Qlik variables and then use those in your select statements. See e.g. &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Can-QV-use-variables-in-SQL-SELECT/m-p/38883" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Can-QV-use-variables-in-SQL-SELECT/m-p/38883&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-declare-SQl-variables-in-Qlik-sense-script/m-p/1911223#M75094</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-03-29T13:23:19Z</dc:date>
    </item>
  </channel>
</rss>

