<?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: Query Excel File Using SQL (OLEDB Object) in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67374#M19979</link>
    <description>&lt;P&gt;I tried with create 3 sheets in one Excel file xlsx. Then&lt;/P&gt;
&lt;P&gt;The OLEDB connection string is: &lt;SPAN style="color: #008000;"&gt;"Provider=Microsoft.ACE.OLEDB.12.0;Data Source="&amp;amp;[File]&amp;amp;";Extended Properties=""Excel 12.0 Xml;HDR=YES"";"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Create these one connection to the file.&lt;/P&gt;
&lt;P&gt;Query Join like this work for me.&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;SELECT S1.[a], S2.[bb], S3.[ccc] 
FROM ( 
    (  
        [Sheet1$] AS S1
        INNER JOIN [Sheet2$] AS S2  
        ON S1.[a] = S2.[aa] 
    )  
    INNER JOIN [Sheet3$] AS S3 
    ON S2.[aa] = S3.[aaa] 
)
WHERE S3.aaa = 3
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 14:04:00 GMT</pubDate>
    <dc:creator>pitchaya.yamprai</dc:creator>
    <dc:date>2020-12-28T14:04:00Z</dc:date>
    <item>
      <title>Query Excel File Using SQL (OLEDB Object)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67369#M19974</link>
      <description>Have connected using OLEDB to an excel file with many worksheets. Is it possible to use INNER JOIN to combine these and output the result as a collection in blue prism?

This isn't working:
"SELECT * FROM [Report$] INNER JOIN [OOH$] ON [MPRN]=[MeterPointRef] WHERE [MPRN]=1236405"

Cheers!</description>
      <pubDate>Thu, 31 Aug 2017 13:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67369#M19974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-31T13:23:00Z</dc:date>
    </item>
    <item>
      <title>I'm not sure of the syntax</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67370#M19975</link>
      <description>I'm not sure of the syntax but it's definitely possible, and I think you can even join sheets in separate files. Google is sure to have examples.</description>
      <pubDate>Thu, 31 Aug 2017 14:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67370#M19975</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2017-08-31T14:42:00Z</dc:date>
    </item>
    <item>
      <title>As with regular SQL, you need</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67371#M19976</link>
      <description>As with regular SQL, you need to specify tables when joining them:
""SELECT
 *
FROM [Report$]
INNER JOIN [OOH$] ON [Report$].[MPRN]=[OOH$].[MeterPointRef] WHERE [Report$].[MPRN]=1236405</description>
      <pubDate>Tue, 05 Sep 2017 15:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67371#M19976</guid>
      <dc:creator>JiriPospisil</dc:creator>
      <dc:date>2017-09-05T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Hello,
We are trying to fire…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67372#M19977</link>
      <description>Hello,
We are trying to fire Inner Join Query on 2 different excel sheets using OLEDB.&amp;nbsp;We tried to do Inner Join like query mentioned above. But getting error. ""Pivot$"" is not a Valid Name. Here Pivot$ is second worksheet name.&amp;nbsp;We just want to understand how many connections needs to be setup in this case. Currently we are setting up 2 different connections for each Worksheet.</description>
      <pubDate>Thu, 21 Feb 2019 10:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67372#M19977</guid>
      <dc:creator>NiveditaDamle</dc:creator>
      <dc:date>2019-02-21T10:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Query Excel File Using SQL (OLEDB Object)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67373#M19978</link>
      <description>&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;¡Hello!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can put:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"SELECT * FROM [Report$] INNER JOIN [OOH$] ON Report$.MPRN = OOH$.MeterPointRef WHERE Report$.MPRN = '1236405'"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I did a lot of this querys,&lt;/P&gt;
&lt;P&gt;My problem now is when I want to do more than 1 INNER JOIN. Anyone can did this type of query in BP?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Belen Rodriguez&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Dec 2020 15:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67373#M19978</guid>
      <dc:creator>BelenRodriguez</dc:creator>
      <dc:date>2020-12-22T15:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Query Excel File Using SQL (OLEDB Object)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67374#M19979</link>
      <description>&lt;P&gt;I tried with create 3 sheets in one Excel file xlsx. Then&lt;/P&gt;
&lt;P&gt;The OLEDB connection string is: &lt;SPAN style="color: #008000;"&gt;"Provider=Microsoft.ACE.OLEDB.12.0;Data Source="&amp;amp;[File]&amp;amp;";Extended Properties=""Excel 12.0 Xml;HDR=YES"";"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Create these one connection to the file.&lt;/P&gt;
&lt;P&gt;Query Join like this work for me.&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;SELECT S1.[a], S2.[bb], S3.[ccc] 
FROM ( 
    (  
        [Sheet1$] AS S1
        INNER JOIN [Sheet2$] AS S2  
        ON S1.[a] = S2.[aa] 
    )  
    INNER JOIN [Sheet3$] AS S3 
    ON S2.[aa] = S3.[aaa] 
)
WHERE S3.aaa = 3
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 14:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Query-Excel-File-Using-SQL-OLEDB-Object/m-p/67374#M19979</guid>
      <dc:creator>pitchaya.yamprai</dc:creator>
      <dc:date>2020-12-28T14:04:00Z</dc:date>
    </item>
  </channel>
</rss>

