Hi Sybil,
Got your meaning . But I think it may not meet our need . our need is
on ds1, we return let says 3 rows. voucher1, voucher2, voucher3.
Then on ds2 ( which is stored procedure) and take one parameter voucher_no.
The sp will use parameter voucher_no to get amount from many tables and calculation and return 1 value.
So we would like it
voucher1, ( call ds2 with voucher1 as parameter and return amount 1.
voucher2, ( call ds2 with voucher2 as parameter and return amount 2.
Many thanks for your prompt reply. |