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: : 151585
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '151585'
The Shares Amount is 21907000
The cusip is 12429T104
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '12429T104'
Number of Rows :14
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0'
where entryId = '13817301'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '90.08'
where entryId = '14330575'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0'
where entryId = '14959242'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '113.01'
where entryId = '15472471'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '21.9'
where entryId = '16006041'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '113.01'
where entryId = '16728401'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0.2'
where entryId = '16938024'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0.27'
where entryId = '17014549'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0'
where entryId = '17073848'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '113.01'
where entryId = '18568471'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '47'
where entryId = '23168674'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '2.93'
where entryId = '23258760'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0'
where entryId = '24012113'
update current13Fpositions set
compid = '151585',
sectorNum = '502003',
sectorDes = 'Packaging & Containers',
issuerCik = '0001392179' ,
percentOut = '0'
where entryId = '24519521'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '12429T104'
Number of Rows :0
End Function
The Script is complete, exiting....