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: : 130671
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130671'
The Shares Amount is 8828000
The cusip is 337756209
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '337756209'
Number of Rows :34
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '1.06'
where entryId = '1264612'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '8.16'
where entryId = '3729052'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '286.42'
where entryId = '5758439'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.68'
where entryId = '9754709'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '17.6'
where entryId = '10235540'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0'
where entryId = '11068198'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.29'
where entryId = '13023170'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.94'
where entryId = '14874139'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.02'
where entryId = '16938439'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.58'
where entryId = '17015120'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '94.82'
where entryId = '18382747'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '16.57'
where entryId = '19053316'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '516.2'
where entryId = '20377642'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '3.67'
where entryId = '23171216'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0'
where entryId = '24520399'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '24.97'
where entryId = '27840720'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '368.15'
where entryId = '42076699'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '9.06'
where entryId = '42078502'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '67.97'
where entryId = '42079071'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '17.5'
where entryId = '42105856'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '569.47'
where entryId = '42108139'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '6.48'
where entryId = '42145783'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.16'
where entryId = '42158094'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '30.49'
where entryId = '42171757'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '215.51'
where entryId = '42175775'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.23'
where entryId = '42203587'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '18.21'
where entryId = '42207882'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '7.66'
where entryId = '42224592'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '2097.6'
where entryId = '42231873'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '9.74'
where entryId = '42244760'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0.64'
where entryId = '42247921'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0'
where entryId = '42264788'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0'
where entryId = '42265856'
update current13Fpositions set
compid = '130671',
sectorNum = '104003',
sectorDes = 'Broadcasting - TV',
issuerCik = '0001034669' ,
percentOut = '0'
where entryId = '42463537'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '337756209'
Number of Rows :0
End Function
The Script is complete, exiting....