Hello Friends,
I have a very common requirement but a very difficult problem (at least for me)...
In my application i have a form for generating Requests for Quotations (RFQ's). In the detail part the user will select the Items.
I want to filter ONLY THOSE VENDORS who are supplying ALL THE ITEMS entered by the users.
I am having Item to Vendor Mapping table whose struncture is like this:
IV_MAP_ID NUMBER(10) PK,
VEND_ID NUMBER(10) FK,
ITEM_ID NUMBER(10) FK
AND THE DATE IS LIKE THIS:
IV_MAP_ID VEND_ID ITEM_ID
=======================================
1 V1 ITEM1
2 V1 ITEM2
3 V2 ITEM1
4 V3 ITEM1
5 V3 ITEM2
6 V4 ITEM5
7 V4 ITEM1
now lets say if the user selects
ITEM1 AND ITEM2 in the request form,
then i want to filter out only those vendors who are supplying both the items, so in above case it should be
V1 AND V3....
how can i achieve this...
please help me as its very urgent...
Thanks in advance,
Gazal
I have a very common requirement but a very difficult problem (at least for me)...
In my application i have a form for generating Requests for Quotations (RFQ's). In the detail part the user will select the Items.
I want to filter ONLY THOSE VENDORS who are supplying ALL THE ITEMS entered by the users.
I am having Item to Vendor Mapping table whose struncture is like this:
IV_MAP_ID NUMBER(10) PK,
VEND_ID NUMBER(10) FK,
ITEM_ID NUMBER(10) FK
AND THE DATE IS LIKE THIS:
IV_MAP_ID VEND_ID ITEM_ID
=======================================
1 V1 ITEM1
2 V1 ITEM2
3 V2 ITEM1
4 V3 ITEM1
5 V3 ITEM2
6 V4 ITEM5
7 V4 ITEM1
now lets say if the user selects
ITEM1 AND ITEM2 in the request form,
then i want to filter out only those vendors who are supplying both the items, so in above case it should be
V1 AND V3....
how can i achieve this...
please help me as its very urgent...
Thanks in advance,
Gazal