View Single Post

   
  #1 (permalink)  
Old 02-28-2008, 08:34 AM
yawnmoth
 
Posts: n/a
Default conditional group by?

Say I have a table like this:

customer_number | name

I'd like to do a group by the customer_number unless the
customer_number is negative, at which point, I'd like to group by name.

Unfortunately, I'm not really sure how to do that. Any ideas?

Reply With Quote