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: : 131071
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '131071'
The Shares Amount is 34663000
The cusip is 92276H106
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '92276H106'
Number of Rows :26
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0.6'
where entryId = '2354919'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '3168067'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '1.38'
where entryId = '3507562'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '3685467'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '12.7'
where entryId = '3734900'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '10.48'
where entryId = '3917871'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '4436235'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '2.28'
where entryId = '4587649'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '5580121'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '8169445'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '9028369'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '5.09'
where entryId = '9342604'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '115.57'
where entryId = '9644300'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '1.26'
where entryId = '9757782'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '63.93'
where entryId = '10252381'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '11116008'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0.64'
where entryId = '11266822'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '709.25'
where entryId = '11450342'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '12326446'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0.03'
where entryId = '12424585'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '12561823'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0.07'
where entryId = '12629668'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '12791003'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0.06'
where entryId = '13468846'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '13654438'
update current13Fpositions set
compid = '131071',
sectorNum = '402006',
sectorDes = 'Medical Instruments & Supplies',
issuerCik = '0000893160' ,
percentOut = '0'
where entryId = '14959233'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '92276H106'
Number of Rows :0
End Function
The Script is complete, exiting....