<?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 Excluding records with the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-records-with-the-script/m-p/645787#M672780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am annoyed with myself for having to ask this, because I am sure it's a simple thing but I can't seem to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my company's database, you can have bookings with no rooms and rooms with no bookings.&amp;nbsp; This view centres entirely on bookings (both with and without rooms) and I want to make sure the rooms without bookings don't show up at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I load the booking table, and then with the rooms table, my statement is this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM $(TBLPRE)rooms u JOIN $(TBLPRE)bookings b on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;u.group_reservation=b.reservation_number where b.reservation_number&amp;gt;0 ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM $(TBLPRE)rooms u RIGHT OUTER JOIN $(TBLPRE)bookings b on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;u.group_reservation=b.reservation_number where b.reservation_number&amp;gt;0 ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 16:43:52 GMT</pubDate>
    <dc:creator>raynac</dc:creator>
    <dc:date>2014-08-25T16:43:52Z</dc:date>
    <item>
      <title>Excluding records with the script</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-records-with-the-script/m-p/645787#M672780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am annoyed with myself for having to ask this, because I am sure it's a simple thing but I can't seem to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my company's database, you can have bookings with no rooms and rooms with no bookings.&amp;nbsp; This view centres entirely on bookings (both with and without rooms) and I want to make sure the rooms without bookings don't show up at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I load the booking table, and then with the rooms table, my statement is this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM $(TBLPRE)rooms u JOIN $(TBLPRE)bookings b on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;u.group_reservation=b.reservation_number where b.reservation_number&amp;gt;0 ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM $(TBLPRE)rooms u RIGHT OUTER JOIN $(TBLPRE)bookings b on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;u.group_reservation=b.reservation_number where b.reservation_number&amp;gt;0 ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-records-with-the-script/m-p/645787#M672780</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2014-08-25T16:43:52Z</dc:date>
    </item>
  </channel>
</rss>

