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: : 130997
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130997'
The Shares Amount is 16884000
The cusip is 92839Y109
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '92839Y109'
Number of Rows :8
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '0'
where entryId = '1828317'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '1883.62'
where entryId = '1837398'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '12.91'
where entryId = '3734985'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '0'
where entryId = '9826139'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '27.08'
where entryId = '10252620'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '0'
where entryId = '10547035'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '1297.39'
where entryId = '13243203'
update current13Fpositions set
compid = '130997',
sectorNum = '402009',
sectorDes = 'Specialized Health Services',
issuerCik = '0000787030' ,
percentOut = '0'
where entryId = '14959225'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '92839Y109'
Number of Rows :0
End Function
The Script is complete, exiting....