<?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 Re: DB Input with two raising columns in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/DB-Input-with-two-raising-columns/m-p/458196#M8346</link>
    <description>&lt;P&gt;Maybe use a case in your where clause&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; SELECT *
 FROM table_1
 WHERE (case when [logoff_time] is NULL then [timestamp] else [logoff_time] end) &amp;gt; ?
 ORDER BY timestamp, logoff_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 May 2019 15:22:28 GMT</pubDate>
    <dc:creator>maciep</dc:creator>
    <dc:date>2019-05-13T15:22:28Z</dc:date>
    <item>
      <title>DB Input with two raising columns</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/DB-Input-with-two-raising-columns/m-p/458195#M8345</link>
      <description>&lt;P&gt;I have a SQL query pull relied on two raising columns (see below).  In DB input, is it possible to set two raise columns?  I am using DB Connect 3.1.4.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT *
FROM table_1
WHERE (timestamp &amp;gt; ? AND logoff_time IS NULL) OR logoff_time&amp;gt; ?
ORDER BY timestamp, logoff_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 May 2019 13:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/DB-Input-with-two-raising-columns/m-p/458195#M8345</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2019-05-13T13:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: DB Input with two raising columns</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/DB-Input-with-two-raising-columns/m-p/458196#M8346</link>
      <description>&lt;P&gt;Maybe use a case in your where clause&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; SELECT *
 FROM table_1
 WHERE (case when [logoff_time] is NULL then [timestamp] else [logoff_time] end) &amp;gt; ?
 ORDER BY timestamp, logoff_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 May 2019 15:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/DB-Input-with-two-raising-columns/m-p/458196#M8346</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2019-05-13T15:22:28Z</dc:date>
    </item>
  </channel>
</rss>

