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: : 130764
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130764'
The Shares Amount is 13242000
The cusip is 61744J820
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '61744J820'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '61744J820'
Number of Rows :6
update archive13F set
compid = '130764',
sectorNum = '302004',
sectorDes = 'Closed - End Fund - Foreign',
issuerCik = '0000919808'
where entryId = '114368906'
update archive13F set
compid = '130764',
sectorNum = '302004',
sectorDes = 'Closed - End Fund - Foreign',
issuerCik = '0000919808'
where entryId = '116535827'
update archive13F set
compid = '130764',
sectorNum = '302004',
sectorDes = 'Closed - End Fund - Foreign',
issuerCik = '0000919808'
where entryId = '119535370'
update archive13F set
compid = '130764',
sectorNum = '302004',
sectorDes = 'Closed - End Fund - Foreign',
issuerCik = '0000919808'
where entryId = '122562117'
update archive13F set
compid = '130764',
sectorNum = '302004',
sectorDes = 'Closed - End Fund - Foreign',
issuerCik = '0000919808'
where entryId = '124690971'
update archive13F set
compid = '130764',
sectorNum = '302004',
sectorDes = 'Closed - End Fund - Foreign',
issuerCik = '0000919808'
where entryId = '127489006'
End Function
The Script is complete, exiting....