Snippet of price table
stockid typeabbrev currabrev debtorno price branchcode startdate  enddate
AC100BL CL         USD                0.2200           2015-07-28 0000-00-00
AC100BL DE         USD                0.3500           2016-07-29 0000-00-00
AC100BL EX         USD                0.3500           2016-07-29 0000-00-00
AC100BL FL         USD                0.4000           2015-07-28 0000-00-00
AC100BL RT         USD                0.4700           2016-07-29 0000-00-00
AC100BL SP         USD                0.3100           2015-07-28 0000-00-00
AC100BL ST         USD                0.2400           2015-07-28 0000-00-00
AC100BL TR         USD                0.4200           2016-07-29 0000-00-00
So, I have experience with MySQL but this is beyond me.
what you see above is a snippet from my price table from my database.
Right now there is a stockid row for every different typeabbrev.
My question is: How can I make a new table where each row is a different stockid and each row has all the different typeabbrev as fields per stockid. So the new table would end up like this:
stockid CL DE EX
AC100BL 0.2200 0.3500 0.3500          
BC19BLF 0.1100 0.1300 0.1400           
CC10GBL 0.3900 0.4900 0.3500           
Sorry if i didnt explain this well.
Basically I would like stockid to be the primary key and for the fields to be all the existing ones plus extra ones for the other typeabrrev.
Thank you in advance for any advice you could offer me.
 
    