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: : 153112
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '153112'
The Shares Amount is 359013000
The cusip is 021515101
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '021515101'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '021515101'
Number of Rows :23
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '68468036'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '70206983'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '72119843'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '74422087'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '75765589'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '77875640'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '79693537'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '81852196'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '84019497'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '86115037'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '88595634'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '90141645'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '92389422'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '95202299'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '96235026'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '98643344'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '101001934'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '103560442'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '106114006'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '108946182'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '111952068'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '114338317'
update archive13F set
compid = '153112',
sectorNum = '304002',
sectorDes = 'Property Management',
issuerCik = '0001430124'
where entryId = '116732038'
End Function
The Script is complete, exiting....