Ignore:
Timestamp:
09/09/10 17:07:26 (21 months ago)
Author:
mattlevine
Message:
  1. Changing from group by to select distinct
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2/www/requirements/mura/extend/extendObjectFeedBean.cfc

    r2788 r2813  
    251251        <cfquery name="rs" datasource="#variables.configBean.getDatasource()#" blockfactor="#blockFactor#"  username="#variables.configBean.getDBUsername()#" password="#variables.configBean.getDBPassword()#"> 
    252252        <cfif dbType eq "oracle" and getMaxItems()>select * from (</cfif> 
    253         select <cfif dbtype eq "mssql" and getMaxItems()>top #getMaxItems()#</cfif>     
     253        select distinct <cfif dbtype eq "mssql" and getMaxItems()>top #getMaxItems()#</cfif>     
    254254        tclassextend.type,tclassextend.subtype,tclassextend.siteID, #dataTable#.baseID as ID 
    255255        from #dataTable# 
     
    271271        on (#dataTable#.baseID=qExtendedSort.baseID) 
    272272        </cfif> 
    273  
    274273         
    275274        where 
     
    335334                <cfif started>)</cfif> 
    336335        </cfif> 
    337  
    338         group by tclassextend.type,tclassextend.subtype,tclassextend.siteID,#dataTable#.baseID 
    339336         
    340337        <cfif len(getSortBy())> 
Note: See TracChangeset for help on using the changeset viewer.