<?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 SQL Select not returning records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337120#M1177649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve, &lt;/P&gt;&lt;P&gt;Have a look-see if your ODBC settings are correct - for example, by using your ODBC connection to access this data from Excel. There's sometimes ODBC settings that have to be changed from the default (related to quoted identifiers, nulls/padding, etc), so this should narrow down your issue to either the ODBC connection, or an actual QlikView problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 11:49:15 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2012-04-04T11:49:15Z</dc:date>
    <item>
      <title>SQL Select not returning records</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337118#M1177647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we have setup an installation of QlikView and connected it to our Progress database, via ODBC.&amp;nbsp; When I try and query a table it returns me no rows, even though I know there are 6222 records in that table.&amp;nbsp; I thought at first that maybe there was a very large field, or some bad data in one of the records that was causing me a problem, because if i return just one field of the table (an integer field) it does return records.&amp;nbsp; After some more investigation it looked like it was one specific field, which was called cInitials and stores customer names essentially.&amp;nbsp; When I look at the difference between records that I can retrieve and records that I cant.........it seems the difference is that if they have a space in the value then QlikView wont return it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the field contains "Steve Smith" it wont come back, whereas if it was "SteveSmith" it will come back!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I point Crystal Reports at the same table, I do get all the records.&amp;nbsp; The script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT cInitials, cSurname, custRef FROM PUB.Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to do something special with my SELECT statement to cope with spaces in the data??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 11:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337118#M1177647</guid>
      <dc:creator />
      <dc:date>2012-04-04T11:01:45Z</dc:date>
    </item>
    <item>
      <title>SQL Select not returning records</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337119#M1177648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connect to Progress via ODBC all the time, so that is not the problem.&lt;/P&gt;&lt;P&gt;Did you use the Select button in the script windows?&lt;/P&gt;&lt;P&gt;Here you can go to the table you want and use the preview tab if there is the data you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also us preceding load, this makes it easier to controle your data in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I your case it should look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Costumers:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cInitials,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cSurname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; custRef ;&lt;/P&gt;&lt;P&gt;SQL SELECT cInitials,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cSurname,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; custRef &lt;/P&gt;&lt;P&gt;FROM PUB.Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 11:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337119#M1177648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-04T11:45:21Z</dc:date>
    </item>
    <item>
      <title>SQL Select not returning records</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337120#M1177649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve, &lt;/P&gt;&lt;P&gt;Have a look-see if your ODBC settings are correct - for example, by using your ODBC connection to access this data from Excel. There's sometimes ODBC settings that have to be changed from the default (related to quoted identifiers, nulls/padding, etc), so this should narrow down your issue to either the ODBC connection, or an actual QlikView problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 11:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337120#M1177649</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2012-04-04T11:49:15Z</dc:date>
    </item>
    <item>
      <title>SQL Select not returning records</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337121#M1177650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out it was a problem with the SQL WIDTH attribtues on the DB fields.&amp;nbsp; I tried to query from Excel and got an actual error back along the lines of:&amp;nbsp; Column cInitials in table PUB.Customers has a value exceeding its max length or precision".&amp;nbsp; As soon as I saw that I remembered the SQL WIDTHs attributes.&amp;nbsp; Increased those, and now it returns the values!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 12:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-not-returning-records/m-p/337121#M1177650</guid>
      <dc:creator />
      <dc:date>2012-04-04T12:14:34Z</dc:date>
    </item>
  </channel>
</rss>

