hi
i m having an table named users.
the column names are id,name,referal ID,amount etc...
each user has an referalID.
so when a new row is inserted i need to update the amount of the referalID by an percentage and their referalID amount by an percentage upto 5levels..
how to select those hierarchy of id's in an query..
thanks
regards
vijay
i m having an table named users.
the column names are id,name,referal ID,amount etc...
each user has an referalID.
so when a new row is inserted i need to update the amount of the referalID by an percentage and their referalID amount by an percentage upto 5levels..
how to select those hierarchy of id's in an query..
thanks
regards
vijay