Guest User

Untitled

a guest
Oct 22nd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. :)
Add Comment
Please, Sign In to add comment