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: : 130988
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130988'
The Shares Amount is 68383000
The cusip is G73537410
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = 'G73537410'
Number of Rows :6
update current13Fpositions set
compid = '130988',
sectorNum = '303003',
sectorDes = 'Life & Health Insurance',
issuerCik = '0001064122' ,
percentOut = '55.34'
where entryId = '3918783'
update current13Fpositions set
compid = '130988',
sectorNum = '303003',
sectorDes = 'Life & Health Insurance',
issuerCik = '0001064122' ,
percentOut = '0.07'
where entryId = '9679236'
update current13Fpositions set
compid = '130988',
sectorNum = '303003',
sectorDes = 'Life & Health Insurance',
issuerCik = '0001064122' ,
percentOut = '0.42'
where entryId = '9758120'
update current13Fpositions set
compid = '130988',
sectorNum = '303003',
sectorDes = 'Life & Health Insurance',
issuerCik = '0001064122' ,
percentOut = '26.05'
where entryId = '10224852'
update current13Fpositions set
compid = '130988',
sectorNum = '303003',
sectorDes = 'Life & Health Insurance',
issuerCik = '0001064122' ,
percentOut = '10.93'
where entryId = '11420999'
update current13Fpositions set
compid = '130988',
sectorNum = '303003',
sectorDes = 'Life & Health Insurance',
issuerCik = '0001064122' ,
percentOut = '0'
where entryId = '14959250'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = 'G73537410'
Number of Rows :0
End Function
The Script is complete, exiting....