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: : 130743
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130743'
The Shares Amount is 36485000
The cusip is 22281W103
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '22281W103'
Number of Rows :10
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '20.58'
where entryId = '2831375'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '7.48'
where entryId = '3504271'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '10.36'
where entryId = '3727925'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '0'
where entryId = '5580347'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '3014.94'
where entryId = '6005775'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '73.42'
where entryId = '6294806'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '84.03'
where entryId = '7429634'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '0.81'
where entryId = '9754168'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '9.65'
where entryId = '10023442'
update current13Fpositions set
compid = '130743',
sectorNum = '602005',
sectorDes = 'Information Technology Services',
issuerCik = '0001028461' ,
percentOut = '30.16'
where entryId = '10232343'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '22281W103'
Number of Rows :0
End Function
The Script is complete, exiting....