Menu

Distinct condition

2005-07-21
2013-03-07
  • Nobody/Anonymous

    Hi,

    I am using the version 2.0 of the AtomsFramework and want to know how to do a criteria of the following form: "select count (distinct field) from table"

    Thanks!

     
    • Richard Banks

      Richard Banks - 2005-08-06

      Hi,

      The distinct clause is not currently generated by the framework.  You can still do what you want using either PerformDirectSQL or PerformPureSQL methods of the persistence broker.

      - Richard.

       
    • Nobody/Anonymous

      Is the function count actually managed or not by the framework ?
      Thanks for the answer.

       
    • Nobody/Anonymous

      Count() - yes.  You need to create a SummaryCriteria and then use the approproate add method to add the count() function.

       

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.