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: : 151517
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '151517'
The Shares Amount is 48154000
The cusip is 88101A100
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '88101A100'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '88101A100'
Number of Rows :13
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '66932148'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '65199173'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '63499408'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '68685869'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '70341357'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '72209160'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '73907905'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '75743270'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '77783178'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '79682438'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '81978888'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '83687604'
update archive13F set
compid = '151517',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001027876'
where entryId = '85772275'
End Function
The Script is complete, exiting....