Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. select core_order_product.order_id,product_name, MAX(order_create_date) as create_date,subscription_id from core_order_product inner join  core_subscription_order on  core_order_product.order_id = core_subscription_order.order_id group by product_name,subscription_id,core_order_product.order_id order by subscription_id
  2.  
  3. if i take out the order_id i get the result I want. but i need that order id. :)