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: : 134885
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '134885'
The Shares Amount is 18482000
The cusip is 14756B102
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '14756B102'
Number of Rows :7
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '725.81'
where entryId = '3127793'
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '797.16'
where entryId = '8599559'
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '701.2'
where entryId = '13242431'
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '0'
where entryId = '13276023'
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '0'
where entryId = '13817380'
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '702.95'
where entryId = '14309755'
update current13Fpositions set
compid = '134885',
sectorNum = '102002',
sectorDes = 'Business Equipment',
issuerCik = '0000861050' ,
percentOut = '17.31'
where entryId = '15133851'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '14756B102'
Number of Rows :0
End Function
The Script is complete, exiting....