<?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: Dynamically selecting schema in DQ Column Analysis in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279112#M3414</link>
    <description>Makes sense, but will this approach work when we create a job that uses tDQReportRun component to&amp;nbsp;call a DQ Column Analysis? When we create a Column Analysis, we must select a DB to choose the columns to analyze. &amp;nbsp;If we select SchemaA as our database, will this same job work if we have a context variable for schema and we run it in other schemas besides SchemaA?</description>
    <pubDate>Tue, 16 Jun 2015 23:15:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-16T23:15:28Z</dc:date>
    <item>
      <title>Dynamically selecting schema in DQ Column Analysis</title>
      <link>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279110#M3412</link>
      <description>We have several database schemas that contain tables with the exact same columns, data types, etc. in each schema. &amp;nbsp;Let's say I create a Column Analysis for the CUSTOMER table in SchemaA. &amp;nbsp;I want to create a Talend job that runs the same column analyses on SchemaB, SchemaC, and SchemaD. &amp;nbsp;How do I do this with context variables?&lt;BR /&gt;When I run the analysis, the SQL looks something like this:&lt;BR /&gt;select count(*) from SchemaA.Customer where ColumnA is null&lt;BR /&gt;It looks like it's hardcoding the schema name in the generated SQL. &amp;nbsp;How do we work around that to make it dynamic?</description>
      <pubDate>Tue, 16 Jun 2015 16:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279110#M3412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T16:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically selecting schema in DQ Column Analysis</title>
      <link>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279111#M3413</link>
      <description>You could put the schema into a context variable and call the same job with handover the schema as context variable.
&lt;BR /&gt;Let say you define in your job a context variable called database_schema.
&lt;BR /&gt;Your query should looks like:
&lt;BR /&gt;At the beginning of the job or for the context parameters in a tRunJob you set the context variable with the correct schema.
&lt;BR /&gt;
&lt;PRE&gt;select count(*) from " + context.database_schema + ".Customer where ColumnA is null&lt;/PRE&gt;
&lt;BR /&gt;Actually this way you could also change column names.</description>
      <pubDate>Tue, 16 Jun 2015 21:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279111#M3413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T21:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically selecting schema in DQ Column Analysis</title>
      <link>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279112#M3414</link>
      <description>Makes sense, but will this approach work when we create a job that uses tDQReportRun component to&amp;nbsp;call a DQ Column Analysis? When we create a Column Analysis, we must select a DB to choose the columns to analyze. &amp;nbsp;If we select SchemaA as our database, will this same job work if we have a context variable for schema and we run it in other schemas besides SchemaA?</description>
      <pubDate>Tue, 16 Jun 2015 23:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279112#M3414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T23:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically selecting schema in DQ Column Analysis</title>
      <link>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279113#M3415</link>
      <description>I do not know, I have not used the component tDQReportRun so far. But the typical configuration of a database is via context variables and I would be surprised if the data quality stuff use other methods to configure the database.</description>
      <pubDate>Wed, 17 Jun 2015 12:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Dynamically-selecting-schema-in-DQ-Column-Analysis/m-p/2279113#M3415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T12:01:19Z</dc:date>
    </item>
  </channel>
</rss>

