distribute amount to the parents in mlm project

hi to all,

How to distribute Incentives to parents of the tree:

the incentives chart is as follows:

table1

ID   stage    total_in_stage     gift

1      1              2                500

2      2              4                100

3      3              8                100

4      4              16               150

5      5              32                150

continue.......................

So how can i create sql query like:

'count parents id total member and if match with table1 then select record from table1 insert record in table2'

thanks in advance

waiting for reply

April 8th, 2014 10:58pm

Hello,

Please post your DDL and expected result, so that the community members will help you to work out this issue in a efficient way.

Regards,

Free Windows Admin Tool Kit Click here and download it now
April 15th, 2014 3:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics