<?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 use one server db column value to another server where clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579507#M739464</link>
    <description>&lt;P&gt;I am using two databases. one is SQL server and another one is oracle db.&lt;/P&gt;&lt;P&gt;First :&lt;/P&gt;&lt;P&gt;The purpose of SQL server to use, i am maintaining all predefined values in this SQL Server table. instead of using hardcode in the Qlik variable, i am just using SQL Server Table.&lt;/P&gt;&lt;P&gt;Second:&lt;/P&gt;&lt;P&gt;The second DB is oracle, my all requirement columns and values have been defined in this DB.&lt;/P&gt;&lt;P&gt;my requirement is, i want to pass SQL server table value in Oracle table where clause.&lt;/P&gt;&lt;P&gt;How to pass multiple values (SQL Server column values) in Oracle where clause.&lt;/P&gt;&lt;P&gt;For Example,&lt;/P&gt;&lt;P&gt;SQL Server table is below :&lt;/P&gt;&lt;P&gt;vENO&amp;nbsp; &amp;nbsp; vNAME&amp;nbsp; &amp;nbsp;vPLACE&lt;/P&gt;&lt;P&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JIVE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vUSA&lt;/P&gt;&lt;P&gt;102&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RIJI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UK&lt;/P&gt;&lt;P&gt;103&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BIJA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CANADA&lt;/P&gt;&lt;P&gt;My Qlik Script is below&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=xxxx;Initial Catalog=SQLTEST;Data Source=xxxxx;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=xxxx;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;SQL_EMP_DETAILS:&lt;BR /&gt;LOAD vENO,&lt;BR /&gt;vENAMe,&lt;BR /&gt;vEPLACE;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TESTRA12.dbo."tbl_Emp_Details";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=xxxxx;Data Source=xxxxxx;Extended Properties=""] (XPassword is xxxxxxxx);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SELECT EMPNO,EMPNAME,EPLACE,ECOUNTRY where EMPNO in () ?????? // here pass SQL server column value --&amp;gt; vENO&lt;/P&gt;&lt;P&gt;How to do this..?&lt;/P&gt;&lt;P&gt;pls. reply immediately, i am struggling in between...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:36:00 GMT</pubDate>
    <dc:creator>saivina2920</dc:creator>
    <dc:date>2024-11-16T03:36:00Z</dc:date>
    <item>
      <title>How to use one server db column value to another server where clause</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579507#M739464</link>
      <description>&lt;P&gt;I am using two databases. one is SQL server and another one is oracle db.&lt;/P&gt;&lt;P&gt;First :&lt;/P&gt;&lt;P&gt;The purpose of SQL server to use, i am maintaining all predefined values in this SQL Server table. instead of using hardcode in the Qlik variable, i am just using SQL Server Table.&lt;/P&gt;&lt;P&gt;Second:&lt;/P&gt;&lt;P&gt;The second DB is oracle, my all requirement columns and values have been defined in this DB.&lt;/P&gt;&lt;P&gt;my requirement is, i want to pass SQL server table value in Oracle table where clause.&lt;/P&gt;&lt;P&gt;How to pass multiple values (SQL Server column values) in Oracle where clause.&lt;/P&gt;&lt;P&gt;For Example,&lt;/P&gt;&lt;P&gt;SQL Server table is below :&lt;/P&gt;&lt;P&gt;vENO&amp;nbsp; &amp;nbsp; vNAME&amp;nbsp; &amp;nbsp;vPLACE&lt;/P&gt;&lt;P&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JIVE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vUSA&lt;/P&gt;&lt;P&gt;102&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RIJI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UK&lt;/P&gt;&lt;P&gt;103&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BIJA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CANADA&lt;/P&gt;&lt;P&gt;My Qlik Script is below&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=xxxx;Initial Catalog=SQLTEST;Data Source=xxxxx;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=xxxx;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;SQL_EMP_DETAILS:&lt;BR /&gt;LOAD vENO,&lt;BR /&gt;vENAMe,&lt;BR /&gt;vEPLACE;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TESTRA12.dbo."tbl_Emp_Details";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=xxxxx;Data Source=xxxxxx;Extended Properties=""] (XPassword is xxxxxxxx);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SELECT EMPNO,EMPNAME,EPLACE,ECOUNTRY where EMPNO in () ?????? // here pass SQL server column value --&amp;gt; vENO&lt;/P&gt;&lt;P&gt;How to do this..?&lt;/P&gt;&lt;P&gt;pls. reply immediately, i am struggling in between...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579507#M739464</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2024-11-16T03:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one server db column value to another server where clause</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579598#M739465</link>
      <description>You can use exists function within qlik script not on the sql query.&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/InterRecordFunctions/Exists.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;i.e. load data as is and the resident load with exists function&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2019 15:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579598#M739465</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-13T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one server db column value to another server where clause</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579655#M739466</link>
      <description>i understood but little bit confused.&lt;BR /&gt;can i have some example scripts or file..?</description>
      <pubDate>Mon, 13 May 2019 16:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579655#M739466</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-05-13T16:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one server db column value to another server where clause</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579681#M739467</link>
      <description>&lt;P&gt;Something like below (very rough code) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SQL_EMP_DETAILS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD vENO,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vENAMe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vEPLACE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL SELECT *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM TESTRA12.dbo."tbl_Emp_Details";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT EMPNO,EMPNAME,EPLACE,ECOUNTRY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;noconcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FinalTemp:&lt;/P&gt;&lt;P&gt;load *&amp;nbsp;&lt;/P&gt;&lt;P&gt;resident Temp where exists(&lt;SPAN&gt;EMPNO,vENO&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579681#M739467</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-13T18:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one server db column value to another server where clause</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579712#M739468</link>
      <description>Thanks for your reply&lt;BR /&gt;Is it possible to use same in the select statement.&lt;BR /&gt;because my query is too large and formed using select statement with many unions,&lt;BR /&gt;i just pass only the variable in the where clause. now it is hardcoded like my above example.</description>
      <pubDate>Tue, 14 May 2019 00:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-one-server-db-column-value-to-another-server-where/m-p/1579712#M739468</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-05-14T00:40:17Z</dc:date>
    </item>
  </channel>
</rss>

