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: : 130837
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130837'
The Shares Amount is 31969000
The cusip is 604697102
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '604697102'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '604697102'
Number of Rows :5
update archive13F set
compid = '130837',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001041609'
where entryId = '96250990'
update archive13F set
compid = '130837',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001041609'
where entryId = '98425734'
update archive13F set
compid = '130837',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001041609'
where entryId = '101010855'
update archive13F set
compid = '130837',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001041609'
where entryId = '103425628'
update archive13F set
compid = '130837',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001041609'
where entryId = '107204409'
End Function
The Script is complete, exiting....