Hi Folks,
I have a slightly strange one. I have a table that stores a history of all order shipments. It is possible to ship orders on more than one day.
What I need to be able to do is get any number of orders and find out the last day that they all shipped. So if I have 5 orders, I need to be able to find out the last date that all 5 of those orders shipped on the same day.
Date Orders Shipped
Aug 1st 1, 2, 5
Aug 2nd 1,2,3,4,5
Aug 3rd 2,4,5
Aug 4th 2,3,4,5
Aug 6th 1,2,3,4
So if I run a query to find the last time all orders shipped on the same day, it should return August 2nd.
Any ideas??
Mighty
I have a slightly strange one. I have a table that stores a history of all order shipments. It is possible to ship orders on more than one day.
What I need to be able to do is get any number of orders and find out the last day that they all shipped. So if I have 5 orders, I need to be able to find out the last date that all 5 of those orders shipped on the same day.
Date Orders Shipped
Aug 1st 1, 2, 5
Aug 2nd 1,2,3,4,5
Aug 3rd 2,4,5
Aug 4th 2,3,4,5
Aug 6th 1,2,3,4
So if I run a query to find the last time all orders shipped on the same day, it should return August 2nd.
Any ideas??
Mighty