<?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 : SQL to OQL</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : SQL to OQL</description>
  <pubDate>Sun, 19 May 2013 22:47:21 -700</pubDate>
  <lastBuildDate>Wed, 29 Oct 2008 09:17:22 -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=978</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>SQL to OQL : Notice that DevForce returns a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3544#3544</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> 978<br /><strong>Posted:</strong> 29-Oct-2008 at 9:17am<br /><br />Notice that DevForce returns a collection of Employees and not the result of a join.&nbsp; If you want your result to contain columns from related tables, you should review the material on Dynamic Entities.&nbsp; However, in most circumstances, we prefer that you avoid the use of Dynamic Entities as they are more complicated to use and do not work well in environments which require modification, deletion, or insertion.]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 09:17:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3544#3544</guid>
  </item> 
  <item>
   <title>SQL to OQL : can you post scheme for this queries?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3543#3543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=395" rel="nofollow">sagi6</a><br /><strong>Subject:</strong> 978<br /><strong>Posted:</strong> 29-Oct-2008 at 6:58am<br /><br />can you post scheme for this queries? :)]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 06:58:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3543#3543</guid>
  </item> 
  <item>
   <title>SQL to OQL : Here are some examples. Keep in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3539#3539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=34" rel="nofollow">jeffdoolittle</a><br /><strong>Subject:</strong> 978<br /><strong>Posted:</strong> 28-Oct-2008 at 7:43pm<br /><br />Here are some examples.&nbsp; Keep in mind that with OQL the persistence manager returns entities, not single values.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IEnumerable&lt;Employee&gt; GetEmployeesManagedBy(Employee manager) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var query = new EntityQuery(typeof(Employee));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddSubquery(EntityRelations.Department_Employee_Works_In.ToParent);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddClause(Department.ManagerEmployeeIdEntityColumn, EntityQueryOp.EQ, manager.EmployeeId);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return persistenceManager.GetEntities&lt;Employee&gt;(query);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IEnumerable&lt;Employee&gt; GetEmployeesManagedBy(long managerId) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var query = new EntityQuery(typeof(Employee));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddSubquery(EntityRelations.Department_Employee_Works_In.ToParent);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddClause(Department.ManagerEmployeeIdEntityColumn, EntityQueryOp.EQ, managerId);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return persistenceManager.GetEntities&lt;Employee&gt;(query);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IEnumerable&lt;Employee&gt; GetEmployeesManagedBy(string managerName) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var names = managerName.Split(' ');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var query = new EntityQuery(typeof(Employee));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddSubquery(EntityRelations.Department_Employee_Works_In.ToParent);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddSubquery(EntityRelations.Employee_Manager_For_Department.ToChild);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddClause(Employee.FirstNameEntityColumn, EntityQueryOp.EQ, names&#091;0&#093;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query.AddClause(Employee.LastNameEntityColumn, EntityQueryOp.EQ, names&#091;1&#093;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return persistenceManager.GetEntities&lt;Employee&gt;(query);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>]]>
   </description>
   <pubDate>Tue, 28 Oct 2008 19:43:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3539#3539</guid>
  </item> 
  <item>
   <title>SQL to OQL : Hi, i&amp;#039;m lerning OQL, can...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3537#3537</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=395" rel="nofollow">sagi6</a><br /><strong>Subject:</strong> 978<br /><strong>Posted:</strong> 28-Oct-2008 at 4:46pm<br /><br />Hi,<br>i'm lerning OQL, can You help me with this example?<br><br>for this scheme:<br><span style="text-decorati&#111;n: underline;"></span><img src="http://stasiek.saganowski.net/oql.jpg" height="486" width="488" border="0" /><br>i have two queries in SQL:<br><br>1) <span style="font-family: monospace;"><br></span>SELECT e.name FROM (Emp e INNER JOIN Dept d ON e.workIn=d.d#) WHERE d.boss=3;<br><br>2)<span style="font-family: monospace;"><br></span>SELECT empWork.name FROM (emp JOIN Dept ON (emp.worksIn=Dept.d#)<span style="font-family: monospace;"><br></span>JOIN emp empBoss ON (Dept.boss=empBoss.e#)) empWork WHERE empBoss.name="Smith";<br><br><br>and i want to write it in OQL. can You help me?<br>is it good place for that ask?]]>
   </description>
   <pubDate>Tue, 28 Oct 2008 16:46:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=978&amp;PID=3537#3537</guid>
  </item> 
 </channel>
</rss>