I have two tables in MySql,
shareholders     
    id  name   value
     1  harry    20
     2  mark     60
     3  richard  20
the second table is
transactions    
     id   date          amount
      1   2013-11-01    2000
      2   2013-11-01    150
      3   2013-11-01    300
      4   2013-11-02    700
      5   2013-11-02    5400
the first table contains the percentage in which the amount in the transactions is divided. is it possible to have a select query in MySQL that will return the following output?
transid    amount    harry   mark   richard ,.....
1          2000      400     1200    400
2          150        30       90     30
3          300        60      180     60
.
.
.        
the number of shareholders is not fixed
 
    