QoQ UNION distincts
what trying union 2 result sets , distinct values (obviously). query being ran is:
<cfquery name="qryuseunits" dbtype="query"> select optiondesc, optionvalue from qryuseunits union select unit optiondesc, unit optionvalue from qmatsup order optiondesc </cfquery>
in qryuseunits table, 1 of optiondesc results "cubic feet" qmatsup, value "cubic feet" (notice difference in case). when dump results of query, get:
cubic feet
cubic feet
cubic meters
...
the collation on sql server sql_latin1_general_cp1_ci_as, , if run query directly on server, distinct results sure. however, case being different, cf doesn't seem consider distinct. rather change select statements convert column upper- or lower-case, there different can query distinct values regardless of case?
tristanlee wrote:
cf doesn't seem consider distinct.
message edited by: ian skinner never mind
More discussions in ColdFusion
adobe
Comments
Post a Comment