<?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 : Comparing Two Columns in a Table</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Comparing Two Columns in a Table</description>
  <pubDate>Thu, 11 Jun 2026 09:26:37 -700</pubDate>
  <lastBuildDate>Wed, 27 Feb 2008 04:28:23 -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=701</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>Comparing Two Columns in a Table : Hi.I am trying to create Entityquery...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=701&amp;PID=2605#2605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=243" rel="nofollow">cuneytgargin</a><br /><strong>Subject:</strong> 701<br /><strong>Posted:</strong> 27-Feb-2008 at 4:28am<br /><br />Hi.<br>I am trying to create Entityquery for the query below .<br><br><br>Select * From Personel Where StillWorking=1 and LastEntryDate &gt; LastExitDate<br><br>As you see, I am trying to compare two columns of the table <br>and Entityquery I created is as below :<br><br><br>EntityQuery query = new EntityQuery(typeof(Personel), Personel.StillWorkingEntityColumn, EntityQueryOp.EQ, true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddClause(Personel.LastEntryDateEntityColumn, EntityQueryOp.GT, Personel.LastExitDateEntityColumn);<br><br>and it's wrong..<br><br>Beacuse in fact query expression seems to&nbsp; be like <br><br>Select * From Personel Where StillWorking=1 and LastEntryDate &gt; Personel.LastExitDate<br><br>check the last query sentence, it sees it like Personel.LastExitDate column...<br><br>How can I ?<br><br>Cheers<br><br>Cuneyt Gargin - Trinoks<br>]]>
   </description>
   <pubDate>Wed, 27 Feb 2008 04:28:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=701&amp;PID=2605#2605</guid>
  </item> 
 </channel>
</rss>