<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Min/Max and Join of Activity and Customer tables</title><link>http://forums.method.me/cs/forums/thread/19854.aspx</link><pubDate>Wed, 13 Nov 2013 17:46:58 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19854</guid><dc:creator>kenlyle</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19854.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=19854</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Val,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;Can the same thing be done in a Grid? &amp;nbsp;The nice thing about using a Grid would be Dynamic filtering and sorting and Export.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;</description></item><item><title>Re: Min/Max and Join of Activity and Customer tables</title><link>http://forums.method.me/cs/forums/thread/1953.aspx</link><pubDate>Tue, 05 Jan 2010 14:50:07 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1953</guid><dc:creator>Method_Valbon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1953.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=1953</wfw:commentRss><description>&lt;p&gt;If you have not already done so, take a look at&amp;nbsp;our &lt;a href="http://www.methodintegration.com/cs/blogs/methodblog/archive/2009/09/03/community-webinar-8-introduction-to-designing-reports-level-1.aspx" title="Webinar 8" class="null"&gt;community webinar&lt;/a&gt; on report designing, it actually takes you through creating a sample report based off the customer table showing activities. In the example the report has the following format:&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Customer(customer table)&lt;/p&gt;
&lt;p&gt;Date(activity table)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type(activity table)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Duration(activity table)&lt;/p&gt;
&lt;p&gt;The fields used from the activity table can be changed to fields you&amp;rsquo;d like to display instead. Notice this report will still list customers with no activities. &lt;/p&gt;
&lt;p&gt;To display detail info based on a min or max you&amp;rsquo;ll want to pay close attention to the summary editor near the end of the webinar above. In the example I have added a label in the Group Footer to display the sum of the duration for each customer&amp;rsquo;s activities. You&amp;rsquo;ll be able to do the same to display the min and max date value by adding a label and modifying the summary properties.&lt;/p&gt;
&lt;p&gt;For additional information also see our &lt;a href="http://www.methodintegration.com/cs/blogs/methodblog/archive/2008/06/18/3-steps-to-becoming-a-report-guru.aspx" title="Report-Guru" class="null"&gt;Report Guru&lt;/a&gt; videos.&lt;/p&gt;
&lt;p&gt;Finally and somewhat related, take a look at the new &lt;a href="http://www.methodintegration.com/cs/blogs/methodblog/archive/2010/01/02/a-new-year-bring-new-features-to-method-including-method-mobile.aspx" title="SQL Override" class="null"&gt;&amp;quot;SQL Override&amp;quot; for grid columns&lt;/a&gt; feature mentioned in our recent blog. Something you might be interested in. &lt;img src="http://www.methodintegration.com/cs/emoticons/emotion-1.gif" alt="Smile" /&gt; &lt;/p&gt;
&lt;p&gt;Please let me know if this helps,&lt;/p&gt;</description></item><item><title>Min/Max and Join of Activity and Customer tables</title><link>http://forums.method.me/cs/forums/thread/1941.aspx</link><pubDate>Sun, 03 Jan 2010 20:13:12 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1941</guid><dc:creator>sgis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1941.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=1941</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to create a report that shows every active customer and for each of those customers, shows the next service date and type and their last service date and type.&amp;nbsp;What&amp;nbsp;I want looks like:&lt;/p&gt;
&lt;p&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last Service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next Service&lt;br /&gt;cust123&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11/23/09 interior&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2/15/10 exterior&lt;/p&gt;
&lt;p&gt;I am basing my report on the Customer table&amp;nbsp;rather than the activity table so that&amp;nbsp;if a customer does not have a service&amp;nbsp;it&amp;nbsp;shows up&amp;nbsp;in the report. &lt;/p&gt;
&lt;p&gt;I actually have two questions.&lt;/p&gt;
&lt;p&gt;1) How do you do a join on the customer and activity tables so that I could show (and filter) all activities by each customer including showing that a customer has no activities.? I have looked in the forums and it appears that the way to do&amp;nbsp;an&amp;nbsp;SQL join is to use the detail report but when I create a detail report using &amp;quot;Activity&amp;quot; as the &amp;quot;data member&amp;quot;I get a report that shows all activity records repeated under each customer name. If I use Customer.Activity as the data member I get the exact same activty record one or more times under each customer. All I want is to show each customer&amp;#39;s activities or lack of activities.&lt;/p&gt;
&lt;p&gt;2) Can you display the info from one detail record based upon if it is the min or max of a certain field? For me, I want to show info from the record that has the Max(Activity.DueDateStart) where Activity.ActivityStatus = &amp;quot;Completed&amp;quot;&amp;nbsp; within the context of each customer.&lt;/p&gt;
&lt;p&gt;Can you help me or point me in the right direction to the documentation for the report generator. If I could just submit my own SQL statement and then write my report against the dataset my custom SQL produced would be great!&lt;/p&gt;</description></item></channel></rss>