[EMAIL PROTECTED] wrote:
> I'm so sorry, but this is my favorite forum and they are so many sharp people 
> out here and I know I can get a quick answer to what shoud be a sql question. 
>  I want to pass two values to distinct in a query.  How do I do that?
> 
> I want to pass both MONTH(recw_assign_month) AS Month & 
> YEAR(recw_assign_month) AS Expr2as the DISTINCT values and not just 
> recw_assign_month.
> 
> I have ...
> 
> SELECT DISTINCT recw_assign_month, MONTH(recw_assign_month) AS Month, 
> YEAR(recw_assign_month) AS Expr2
> FROM         dbo.tbl_recipe_monthly_winner
> WHERE     (recw_assign_month <> '')
> 

If I understand what you are asking, you already have it.  DISTINCT 
works on the whole row, not one particular field.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266764
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to