R
Rusty Ashbaugh
Does anyone know how to design a query that will take information as
presented in Table 1 and get it sorted to Table 2? Basically I want to sort
the part numbers by date, but then I want to take the first occurring part
number and put all of its subsequent occurrences right after it (in date
order). Then the second occurring part number and all of its occurrences and
so on. I have developed a way to do this, but it’s ugly.
Table 1 Table 2
Date Part # Date Part #
1/3/05 A 1/3/05 A
1/8/05 C 2/3/05 A
1/13/05 B 3/3/05 A
2/3/05 A 1/8/05 C
2/8/05 C 2/8/05 C
2/13/05 B 3/8/05 C
3/3/05 A 1/13/05 B
3/8/05 C 2/13/05 B
3/13/05 B 3/13/05 B
Thanks,
Rusty Ashbaugh
presented in Table 1 and get it sorted to Table 2? Basically I want to sort
the part numbers by date, but then I want to take the first occurring part
number and put all of its subsequent occurrences right after it (in date
order). Then the second occurring part number and all of its occurrences and
so on. I have developed a way to do this, but it’s ugly.
Table 1 Table 2
Date Part # Date Part #
1/3/05 A 1/3/05 A
1/8/05 C 2/3/05 A
1/13/05 B 3/3/05 A
2/3/05 A 1/8/05 C
2/8/05 C 2/8/05 C
2/13/05 B 3/8/05 C
3/3/05 A 1/13/05 B
3/8/05 C 2/13/05 B
3/13/05 B 3/13/05 B
Thanks,
Rusty Ashbaugh