Ascalonian
Programmer
I have a result set coming back like:
I only want to return the header_id where, for a given header_id, there is one line holding A and one line holding B (for example 232 and 216). So if a header_id does not have both A & B in its lines, do not return the header_id.
Hope that made sense. And I def. appreciate any help on this.
Code:
header_id line_number value
--------- ----------- ------
294 1 A
294 2 A
232 1 A
232 2 B
215 1 A
216 3 B
216 5 A
278 2 B
I only want to return the header_id where, for a given header_id, there is one line holding A and one line holding B (for example 232 and 216). So if a header_id does not have both A & B in its lines, do not return the header_id.
Hope that made sense. And I def. appreciate any help on this.