S
subs
ocity dcity consignee ship date Total Price Total ships week no
memphis oasis NAM1 2/21/2008 333
memphis oasis NAM1 2/20/2008 3333
mumbai cinci1 NAM3 2/23/2009 34
india cinci NAM2 1/1/2009 222
india cinci NAM2 1/11/2008 3333
mumbai delhi NAM3 6/1/2009 3259
mumbai delhi NAM3 6/5/2009 9444
I want to add up the total price when the ocity, dicity , consignee
are same and the ship date belongs to the same week in the same year,
and also fill up the total ships and week no. So i need a SQL query
which gives
the following result
ocity dcity consignee ship date Total Price total ships weekno
memphis oasis NAM1 2/20/2008 3666 2
india cinci NAM2 1/1/2009 3555 2
mumbai delhi NAM3 6/1/2009 12703 2
I appreciate any help in SQL query. Thanks you so much
memphis oasis NAM1 2/21/2008 333
memphis oasis NAM1 2/20/2008 3333
mumbai cinci1 NAM3 2/23/2009 34
india cinci NAM2 1/1/2009 222
india cinci NAM2 1/11/2008 3333
mumbai delhi NAM3 6/1/2009 3259
mumbai delhi NAM3 6/5/2009 9444
I want to add up the total price when the ocity, dicity , consignee
are same and the ship date belongs to the same week in the same year,
and also fill up the total ships and week no. So i need a SQL query
which gives
the following result
ocity dcity consignee ship date Total Price total ships weekno
memphis oasis NAM1 2/20/2008 3666 2
india cinci NAM2 1/1/2009 3555 2
mumbai delhi NAM3 6/1/2009 12703 2
I appreciate any help in SQL query. Thanks you so much