cheuschober
Muse of Fire
- Local time
- Today, 17:34
- Joined
- Oct 25, 2004
- Messages
- 168
Agregation between different values of a multiple key
Okay, so today's fuzzy headed mystery applies to a three field wonder involving a key (combined with date to be pk), a numeric (semester) date, and a value.
Table 1
----------
1 20041 3
1 20042 3
3 20042 4
4 20041 2
5 20041 4
----------
What I need to be able to do right now is select only the keys where the difference between the values of semesters of a given year is > 0.
Right now I don't even have a bone to know where to start sniffing. Any help would be greatly appreciated.
~Chad
Okay, so today's fuzzy headed mystery applies to a three field wonder involving a key (combined with date to be pk), a numeric (semester) date, and a value.
Table 1
----------
1 20041 3
1 20042 3
3 20042 4
4 20041 2
5 20041 4
----------
What I need to be able to do right now is select only the keys where the difference between the values of semesters of a given year is > 0.
Right now I don't even have a bone to know where to start sniffing. Any help would be greatly appreciated.
~Chad
Last edited: