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: : 130790
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '130790'
The Shares Amount is 56270000
The cusip is 94768C108
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '94768C108'
Number of Rows :16
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0'
where entryId = '1367249'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '23.71'
where entryId = '2828296'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '26.31'
where entryId = '2833691'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '33.59'
where entryId = '3031882'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '20.59'
where entryId = '3735145'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '27.97'
where entryId = '3917912'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0'
where entryId = '4419022'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '51.47'
where entryId = '5455715'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0'
where entryId = '9169379'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0'
where entryId = '9415557'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0'
where entryId = '9826175'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0'
where entryId = '10526691'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '1.32'
where entryId = '13625956'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0.96'
where entryId = '13626228'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0.96'
where entryId = '13626627'
update current13Fpositions set
compid = '130790',
sectorNum = '602001',
sectorDes = 'Application Software',
issuerCik = '0001035096' ,
percentOut = '0.53'
where entryId = '13627009'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '94768C108'
Number of Rows :0
End Function
The Script is complete, exiting....