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: : 130537
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130537'
The Shares Amount is 7678000
The cusip is 315653402
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '315653402'
Number of Rows :8
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '0'
where entryId = '3728901'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '409.74'
where entryId = '11208773'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '0'
where entryId = '13817728'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '293.53'
where entryId = '14581439'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '11.98'
where entryId = '14874050'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '69.55'
where entryId = '16978564'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '0'
where entryId = '23402398'
update current13Fpositions set
compid = '130537',
sectorNum = '605007',
sectorDes = 'Wireless Communications',
issuerCik = '0001001868' ,
percentOut = '0'
where entryId = '23406485'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '315653402'
Number of Rows :0
End Function
The Script is complete, exiting....