Hi,
I have a table that contains InvNum, ItemNum, and Section. Here is an example
InvNum ItemNum Section
100 A100 1
100 B100 1
101 C100 1
101 F100 2
102 D100 2
102 D101 2
I need to write a SELECT statement that selects the InvNum of only Invoices that have the same section for all of the ItemNums.
For instance, InvNum 100 and 102 would fit the criteria. 101 would not because it has ItemNums from Section 1 and 2.
I have the SELECT and FROM part done, but I don't have the WHERE part of any additional parts that would be needed.
-Uncle Cake
I have a table that contains InvNum, ItemNum, and Section. Here is an example
InvNum ItemNum Section
100 A100 1
100 B100 1
101 C100 1
101 F100 2
102 D100 2
102 D101 2
I need to write a SELECT statement that selects the InvNum of only Invoices that have the same section for all of the ItemNums.
For instance, InvNum 100 and 102 would fit the criteria. 101 would not because it has ItemNums from Section 1 and 2.
I have the SELECT and FROM part done, but I don't have the WHERE part of any additional parts that would be needed.
-Uncle Cake