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: : 159779
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '159779'
The Shares Amount is 406000000
The cusip is 46428D108
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '46428D108'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '46428D108'
Number of Rows :14
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '66810197'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '67175419'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '65079603'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '65591851'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '63386686'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '64082396'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '68413216'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '70138860'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '74267277'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '76255944'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '79805057'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '81757787'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '92048913'
update archive13F set
compid = '159779',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004245'
where entryId = '94132063'
End Function
The Script is complete, exiting....