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: : 151599
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '151599'
The Shares Amount is 0
The cusip is 40053G106
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '40053G106'
Number of Rows :8
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '12934331'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '12956825'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '13975939'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '14389256'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '18626484'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '18818446'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '20168186'
update current13Fpositions set
compid = '151599',
sectorNum = '302006',
sectorDes = 'Diversified Investments',
issuerCik = '0001381117' ,
percentOut = '0'
where entryId = '55792210'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '40053G106'
Number of Rows :0
End Function
The Script is complete, exiting....