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: : 145588
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '145588'
The Shares Amount is 0
The cusip is 07725Q200
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '07725Q200'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '07725Q200'
Number of Rows :22
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '67501899'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66761166'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66624787'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '65169696'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '63616773'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '64867185'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '70006599'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '69863685'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '70105614'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '71154063'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '72371575'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '73309169'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '75044678'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '76972821'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '78835650'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '81170375'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '82232681'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '85482349'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '87179203'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '89272823'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '91144516'
update archive13F set
compid = '145588',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '93873916'
End Function
The Script is complete, exiting....