abhishekpant
Programmer
Table A
PRODUCTID PRICEDATE PRICE SOURCE
1 20080102 10.12 A
1 20080102 10.13 B
1 20080102 10.12 C
1 20080102 10.12 D
2 20080102 43.23 A
2 20080102 43.26 B
2 20080102 43.23 C
2 20080102 43.26 D
I have a table A with these fields PRODUCTID,PRICEDATE,PRICE,SOURCE
I need to find out which product id has differnt price from different souce
i.e suppose if for instance we take productid 1 , it has same price from 3 different source A,c,and D
and the price from source B is differ from .01
so in the result the need something like this'
PRODUCTID PRICEDATE PRICE SOURCE PRICE DIFFERENCE DIFFERENCESOURCE
1 20080102 10.12 A,C,D .01 B
Can someone help
Thanks
Abhishek
PRODUCTID PRICEDATE PRICE SOURCE
1 20080102 10.12 A
1 20080102 10.13 B
1 20080102 10.12 C
1 20080102 10.12 D
2 20080102 43.23 A
2 20080102 43.26 B
2 20080102 43.23 C
2 20080102 43.26 D
I have a table A with these fields PRODUCTID,PRICEDATE,PRICE,SOURCE
I need to find out which product id has differnt price from different souce
i.e suppose if for instance we take productid 1 , it has same price from 3 different source A,c,and D
and the price from source B is differ from .01
so in the result the need something like this'
PRODUCTID PRICEDATE PRICE SOURCE PRICE DIFFERENCE DIFFERENCESOURCE
1 20080102 10.12 A,C,D .01 B
Can someone help
Thanks
Abhishek