<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Finding most recent record</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Finding most recent record</description>
  <pubDate>Sun, 12 Apr 2026 23:41:02 -700</pubDate>
  <lastBuildDate>Tue, 29 Apr 2008 09:52:54 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=788</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Finding most recent record : Simul-posted with David!David,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2897#2897</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=153" rel="nofollow">pnschofield</a><br /><strong>Subject:</strong> 788<br /><strong>Posted:</strong> 29-Apr-2008 at 9:52am<br /><br />Simul-posted with David!<br><br>David, would the top-1 approach work?<br>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 09:52:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2897#2897</guid>
  </item> 
  <item>
   <title>Finding most recent record : Try something like this:RdbQuery...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2895#2895</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=153" rel="nofollow">pnschofield</a><br /><strong>Subject:</strong> 788<br /><strong>Posted:</strong> 29-Apr-2008 at 9:51am<br /><br />Try something like this:<br><br>RdbQuery query = new RdbQuery(typeof(Case));<br>query.AddClause(Case.MemberIdEntityColumn, EntityQueryOp.EQ, mMember.MemberID);<br>query.AddOrderBy(Case.CaseDate, ListSortDirection.Descending);<br>query.Top = 1;<br>Case mostRecentCase = PM.GetEntity&lt;Case&gt;(query);<br><br>When you sort the cases for a member by date, descending, the top 1 record will be the most recent.<br><br>Paul<br>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 09:51:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2895#2895</guid>
  </item> 
  <item>
   <title>Finding most recent record : Use a PassthroughRdbQuery, </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2894#2894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 788<br /><strong>Posted:</strong> 29-Apr-2008 at 9:46am<br /><br />Use a PassthroughRdbQuery,]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 09:46:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2894#2894</guid>
  </item> 
  <item>
   <title>Finding most recent record : In SQL, I would use the MAX function...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2882#2882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 788<br /><strong>Posted:</strong> 27-Apr-2008 at 3:52pm<br /><br />In SQL, I would use the MAX function to find the most recent case for a member.&nbsp; Is there an easy way to do it with Entities and OQL or do I have to use a SQL query or stored procedure?<DIV>&nbsp;</DIV><DIV>BillG</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 27 Apr 2008 15:52:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=788&amp;PID=2882#2882</guid>
  </item> 
 </channel>
</rss>