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: : 160399
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '160399'
The Shares Amount is 20360000
The cusip is 36191X100
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '36191X100'
Number of Rows :6
update current13Fpositions set
compid = '160399',
sectorNum = '701004',
sectorDes = 'Synthetics',
issuerCik = '0001275712' ,
percentOut = '36.94'
where entryId = '38324823'
update current13Fpositions set
compid = '160399',
sectorNum = '701004',
sectorDes = 'Synthetics',
issuerCik = '0001275712' ,
percentOut = '6.83'
where entryId = '42106012'
update current13Fpositions set
compid = '160399',
sectorNum = '701004',
sectorDes = 'Synthetics',
issuerCik = '0001275712' ,
percentOut = '159.56'
where entryId = '42134278'
update current13Fpositions set
compid = '160399',
sectorNum = '701004',
sectorDes = 'Synthetics',
issuerCik = '0001275712' ,
percentOut = '982.53'
where entryId = '42155406'
update current13Fpositions set
compid = '160399',
sectorNum = '701004',
sectorDes = 'Synthetics',
issuerCik = '0001275712' ,
percentOut = '9.21'
where entryId = '42174761'
update current13Fpositions set
compid = '160399',
sectorNum = '701004',
sectorDes = 'Synthetics',
issuerCik = '0001275712' ,
percentOut = '245.1'
where entryId = '42244625'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '36191X100'
Number of Rows :0
End Function
The Script is complete, exiting....