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: : 130704
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130704'
The Shares Amount is 53164000
The cusip is 899690101
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '899690101'
Number of Rows :10
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '0'
where entryId = '1599583'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '1.65'
where entryId = '3734556'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '0'
where entryId = '4419020'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '44.42'
where entryId = '6294840'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '4.36'
where entryId = '8563696'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '11.48'
where entryId = '10251441'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '2.77'
where entryId = '14878908'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '12.13'
where entryId = '15007893'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '125.93'
where entryId = '16006174'
update current13Fpositions set
compid = '130704',
sectorNum = '604003',
sectorDes = 'Internet Software & Services',
issuerCik = '0001022509' ,
percentOut = '0'
where entryId = '17822901'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '899690101'
Number of Rows :0
End Function
The Script is complete, exiting....