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: : 130884
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130884'
The Shares Amount is 36787000
The cusip is 004319109
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '004319109'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '004319109'
Number of Rows :9
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '67069033'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '65063946'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '63669250'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '68611748'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '70514463'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '74049876'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '75990466'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '77819898'
update archive13F set
compid = '130884',
sectorNum = '104006',
sectorDes = 'Marketing Services',
issuerCik = '0001048422'
where entryId = '80387109'
End Function
The Script is complete, exiting....