G
Guest
Hi Guys!
I need some assistance on how to write a code or SQL for the following table:
Date Inv Trnx Seq Tag Date
20051205 0000149110 8113624673 1 S 12/6/2005
20051205 0000149110 8113624673 2 12/6/2005
20051205 0000149110 8113624673 3 E 12/7/2005
20051205 0000149110 8113624673 4 S 12/29/2005
20051205 0000149110 8113624673 5 12/29/2005
20051205 0000149110 8113624673 6 12/29/2005
20051205 0000149110 8113624673 7 E 12/29/2005
What I need to accomplish is to set the min date of each group as the final
date in the table.
Example: Seq 1,2,3 is the 1st group. Seq 4-7 belongs to the 2nd group.
Seq 1 (with “S†tag is the min date (12/6/2005)) that I want to apply to the
whole group (1st group, Seq 1,2,3). That goes the same to group 2 (Seq 4-7),
Seq 4 Tag “S†with min date 12/29/2005) which in this case, its already been
done.
As always, I will appreciate any thoughts you can share.
Rob
I need some assistance on how to write a code or SQL for the following table:
Date Inv Trnx Seq Tag Date
20051205 0000149110 8113624673 1 S 12/6/2005
20051205 0000149110 8113624673 2 12/6/2005
20051205 0000149110 8113624673 3 E 12/7/2005
20051205 0000149110 8113624673 4 S 12/29/2005
20051205 0000149110 8113624673 5 12/29/2005
20051205 0000149110 8113624673 6 12/29/2005
20051205 0000149110 8113624673 7 E 12/29/2005
What I need to accomplish is to set the min date of each group as the final
date in the table.
Example: Seq 1,2,3 is the 1st group. Seq 4-7 belongs to the 2nd group.
Seq 1 (with “S†tag is the min date (12/6/2005)) that I want to apply to the
whole group (1st group, Seq 1,2,3). That goes the same to group 2 (Seq 4-7),
Seq 4 Tag “S†with min date 12/29/2005) which in this case, its already been
done.
As always, I will appreciate any thoughts you can share.
Rob