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: : 133246
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '133246'
The Shares Amount is 133269000
The cusip is 785905100
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '785905100'
Number of Rows :33
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '1.88'
where entryId = '1095905'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0.44'
where entryId = '1141535'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '2.57'
where entryId = '1224510'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0.86'
where entryId = '1265359'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '7.13'
where entryId = '1570223'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0.75'
where entryId = '1701326'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '105.43'
where entryId = '1728315'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '1828098'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '3.92'
where entryId = '2374674'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '2451520'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0.08'
where entryId = '2833110'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '13.12'
where entryId = '3031756'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '2.25'
where entryId = '3302219'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '3.59'
where entryId = '3506830'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '55.11'
where entryId = '3733282'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '3885529'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '5.64'
where entryId = '3917618'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '4993623'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '5580171'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0.66'
where entryId = '6416666'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '42.04'
where entryId = '6793651'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '2.61'
where entryId = '6910950'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '58.18'
where entryId = '7530233'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '33.77'
where entryId = '8392140'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '8502409'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '9415424'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '9826337'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '10517111'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '10523240'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '10526650'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '10538148'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0'
where entryId = '10626432'
update current13Fpositions set
compid = '133246',
sectorNum = '604001',
sectorDes = 'Search Engines & Information',
issuerCik = '0001020265' ,
percentOut = '0.01'
where entryId = '12182796'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '785905100'
Number of Rows :0
End Function
The Script is complete, exiting....