To do multible compids, use the following script:
php /var/www/html_j3sg/institutions/ChangeCompidOfAllInstitutionalAfewCompaniesAtATime.php
Please note that the script mentioned above (ChangeCompidOfAllInstitutionalAfewCompaniesAtATime) only updates the current13FFilingpositions table, no archived tables.
This script actual updates 13F current table as well as both archive13F tables.
We got coming in compid: : 151530
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '151530'
The Shares Amount is 29263000
The cusip is 82968A105
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '82968A105'
Number of Rows :6
update current13Fpositions set
compid = '151530',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001388775' ,
percentOut = '0.14'
where entryId = '9757120'
update current13Fpositions set
compid = '151530',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001388775' ,
percentOut = '134.59'
where entryId = '10248804'
update current13Fpositions set
compid = '151530',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001388775' ,
percentOut = '0.68'
where entryId = '12301233'
update current13Fpositions set
compid = '151530',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001388775' ,
percentOut = '0.03'
where entryId = '12934945'
update current13Fpositions set
compid = '151530',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001388775' ,
percentOut = '2.39'
where entryId = '14878170'
update current13Fpositions set
compid = '151530',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001388775' ,
percentOut = '0'
where entryId = '16955304'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '82968A105'
Number of Rows :0
End Function
The Script is complete, exiting....