<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Dashboard Discussion, Support, Examples, Help Tag: multiple sql</title>
<link>http://dashboard.infocaptor.com/</link>
<description>Dashboard Discussion, Support, Examples, Help Tag: multiple sql</description>
<language>en</language>
<pubDate>Tue, 06 Jan 2009 10:33:22 +0000</pubDate>

<item>
<title>admin on "Multiple Queries in one Qlet (query portlet)"</title>
<link>http://dashboard.infocaptor.com/topic/multiple-queries-in-one-qlet-query-portlet#post-10</link>
<pubDate>Thu, 10 Apr 2008 20:00:36 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">10@http://dashboard.infocaptor.com/</guid>
<description>&#60;p&#62;One of the requirements for the dashboard I am building is that I am given a fixed set of SQL statements/stored procedures, in addition to other stuff that I put in the dashboard, that have to be executed and their result displayed. Obviously, one can create a QLET for each of them. But this means that there are many QLETs. Is it possible to have 1 QLET that displays different number of colums depending on what the SQL/stroed procedure returns?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;You can do this by just using two Qlets.

Create one parent qlet, with unions
if using Oracle database then
select &#38;#39;Table1&#38;#39; from dual
union
select &#38;#39;Table2&#38;#39; from dual
union
select &#38;#39;Table3&#38;#39; from dual

I think in MySQL you can just say
select &#38;#39;Table1
union
select &#38;#39;Table2&#38;#39;
union
select &#38;#39;Table3&#38;#39;

Now this is done in the first Qlet (parent)

Next create a child Qlet with following query
select * from param&#38;lt;Table Name,x&#38;gt;

For the child Qlet, Set the &#38;#39;Run on start&#38;#39; property to &#38;#39;No&#38;#39;

Once the parent and child Qlet are done, create a drill from the parent to child. Check the attached pdf tutorial&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
