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

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO