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: : 167130
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '167130'
The Shares Amount is 9000000
The cusip is 92731L205
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '92731L205'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '92731L205'
Number of Rows :17
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '96889508'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '97806502'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '97824004'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '97922467'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '97941691'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '97823048'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '100844744'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '99261973'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '99393820'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '100286438'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '100623827'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '100624983'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '100640782'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '100636262'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '102429038'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '102430438'
update archive13F set
compid = '167130',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000006475'
where entryId = '102982472'
End Function
The Script is complete, exiting....