Menu

unable to create this query

2004-06-18
2004-06-20
  • Nobody/Anonymous

    select id from employees where parentid is null

     
    • Richard Banks

      Richard Banks - 2004-06-20

      1. Create a CRetrieveCriteria and use CEmployees as the classmap.

      2. Add a selectequalto to the where condition and pass parentid as the attribute and Nothing as the value (vb syntax).

      Eg:
      Dim rc as new CRetrieveCriteria
      rc.ClassMap = emp.getClassMap
      rc.WhereCondition.addSelectEqualTo("ParentID",Nothing)

      - Richard.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.