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: : 131008
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '131008'
The Shares Amount is 14360000
The cusip is 64126L108
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '64126L108'
Number of Rows :12
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '27.24'
where entryId = '11177257'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '43.88'
where entryId = '12779134'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '97.22'
where entryId = '14568618'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '1.39'
where entryId = '14876497'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '100.84'
where entryId = '15760242'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '21.67'
where entryId = '16683974'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '122.71'
where entryId = '17008087'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '33.44'
where entryId = '17203073'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '21.11'
where entryId = '18429546'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '150.84'
where entryId = '18755743'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '17.57'
where entryId = '23174807'
update current13Fpositions set
compid = '131008',
sectorNum = '701003',
sectorDes = 'Specialty Chemicals',
issuerCik = '0001227699' ,
percentOut = '0'
where entryId = '55849959'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '64126L108'
Number of Rows :0
End Function
The Script is complete, exiting....