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: : 159662
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '159662'
The Shares Amount is 9000000
The cusip is 00110G200
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '00110G200'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '00110G200'
Number of Rows :18
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '89061670'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '89331779'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '90571411'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '91207538'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '93085506'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '92995207'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '93145832'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '93186838'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '93308058'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '95271389'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '94418377'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '95225445'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '95318297'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '95722304'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '96659208'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '97572792'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '98143705'
update archive13F set
compid = '159662',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004128'
where entryId = '98157193'
End Function
The Script is complete, exiting....