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: : 159653
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '159653'
The Shares Amount is 9000000
The cusip is 06740P148
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '06740P148'
Number of Rows :1
update current13Fpositions set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119' ,
percentOut = '0.94'
where entryId = '51208137'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '06740P148'
Number of Rows :28
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '68083919'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '66364227'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '67700031'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '68054118'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '67783030'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '66706210'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '66586195'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '66319955'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '65765025'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '63406600'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '65123870'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '64590876'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '64631606'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '64649069'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '68430354'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '69613077'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '69557181'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '69936762'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '70234071'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '71402002'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '71754898'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '72751999'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '73425652'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '73598979'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '75603552'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '75248016'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '75630055'
update archive13F set
compid = '159653',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '9000004119'
where entryId = '77602830'
End Function
The Script is complete, exiting....