<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ab.edge-technologies.com/docs/index.php?action=history&amp;feed=atom&amp;title=Appboard%2F2.6%2Fbuilder%2Fdata_sources%2Fsub-query</id>
	<title>Appboard/2.6/builder/data sources/sub-query - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ab.edge-technologies.com/docs/index.php?action=history&amp;feed=atom&amp;title=Appboard%2F2.6%2Fbuilder%2Fdata_sources%2Fsub-query"/>
	<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/data_sources/sub-query&amp;action=history"/>
	<updated>2026-05-21T11:45:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/data_sources/sub-query&amp;diff=8274&amp;oldid=prev</id>
		<title>imported&gt;Jason.nicholls: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/data_sources/sub-query&amp;diff=8274&amp;oldid=prev"/>
		<updated>2015-04-30T10:59:32Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:59, 30 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Jason.nicholls</name></author>
	</entry>
	<entry>
		<id>http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/data_sources/sub-query&amp;diff=8273&amp;oldid=prev</id>
		<title>imported&gt;Jason.nicholls: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/data_sources/sub-query&amp;diff=8273&amp;oldid=prev"/>
		<updated>2014-06-26T15:52:25Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Sub-Query Data Adapter}}&lt;br /&gt;
[[Category:AppBoard 2.6]]&lt;br /&gt;
&lt;br /&gt;
The Sub-Query data adapter is used to perform queries and transformation against other data source entities. This does not appear in the adapter type chooser when adding a data source, instead select an existing data source and click the &amp;#039;&amp;#039;Create Sub-Query&amp;#039;&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
Typical uses for the Sub-Query data adapter are when raw information needs to be summarized or transformed in a way to support a particular visualization:&lt;br /&gt;
&lt;br /&gt;
* Grouping: group by one or more columns and calculate counts, or max/min values.&lt;br /&gt;
* Pivoting: transform row-oriented data into column-oriented data&lt;br /&gt;
* Sub-select: select a sub-set of columns&lt;br /&gt;
* Filtering: general operator and value based filtering to reduce the data set.&lt;br /&gt;
* Sorting: sort by one or more columns&lt;br /&gt;
* Limit Row Count: reduce the data set - returns the top most rows within the limit.&lt;br /&gt;
&lt;br /&gt;
{{Note|Data Collections also provide some overlapping functionality, specifically the ability to sort, limit rows, and filtering.}}&lt;br /&gt;
&lt;br /&gt;
[[File:appboard-2.4-sub-query-example.png|frame|Sub-Query example configuration.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Group-By Example ===&lt;br /&gt;
&lt;br /&gt;
Given a raw list of items it&amp;#039;s a fairly common task to be able to group these by some category in order to get min/max/counts for the groupings.&lt;br /&gt;
&lt;br /&gt;
As an example, AppBoard ships with some sample data that includes airports around the world. We want to create a new data source that provides us with a count of airports by country, this may be useful to provide a pick-list of countries for filtering, or a pie-chart with the Top-10 Countries with the highest number of airports, etc...&lt;br /&gt;
&lt;br /&gt;
The screenshot above shows the source as &amp;lt;tt&amp;gt;tutorial.Airport&amp;lt;/tt&amp;gt;. Using the &amp;#039;&amp;#039;Advanced Transform&amp;#039;&amp;#039; option, and enabling a &amp;#039;&amp;#039;Transform&amp;#039;&amp;#039; we can then group by the &amp;lt;tt&amp;gt;Country&amp;lt;/tt&amp;gt; column, and then perform an aggregation on some other column to give us a count. We could have added additional aggregation columns, such as the max and min on the &amp;lt;tt&amp;gt;Altitude&amp;lt;/tt&amp;gt; column to give us some additional information about the groupings.&lt;br /&gt;
&lt;br /&gt;
AppBoard 2.6 ships with some welcome content including a Sub-Query data source called &amp;lt;tt&amp;gt;airport.countries&amp;lt;/tt&amp;gt; which does the same as this example. It&amp;#039;s used to drive the example content to showcase the Tile Map widget.&lt;/div&gt;</summary>
		<author><name>imported&gt;Jason.nicholls</name></author>
	</entry>
</feed>