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: : 131374
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '131374'
The Shares Amount is 43939000
The cusip is 88428W108
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '88428W108'
Number of Rows :30
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '1.79'
where entryId = '3507319'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0.55'
where entryId = '3734338'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '5.23'
where entryId = '10224114'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '19.27'
where entryId = '10250839'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '200.54'
where entryId = '11178894'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '56.9'
where entryId = '11272440'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '83.3'
where entryId = '11369448'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '4.55'
where entryId = '11392524'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '105.19'
where entryId = '11424754'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0.03'
where entryId = '12289003'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '12562529'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0.57'
where entryId = '13025291'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '128.27'
where entryId = '13443133'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '81.71'
where entryId = '14319718'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '2.86'
where entryId = '14328627'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '15.46'
where entryId = '14333190'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0.57'
where entryId = '14680417'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '3.1'
where entryId = '14878732'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '117.19'
where entryId = '16006178'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '16106677'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0.57'
where entryId = '16196833'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '16795358'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17001007'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17227027'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17786407'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17804357'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17819848'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17822902'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '17954031'
update current13Fpositions set
compid = '131374',
sectorNum = '401001',
sectorDes = 'Biotechnology',
issuerCik = '0001120438' ,
percentOut = '0'
where entryId = '18012484'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '88428W108'
Number of Rows :0
End Function
The Script is complete, exiting....