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: : 145532
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '145532'
The Shares Amount is 0
The cusip is 00753G103
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '00753G103'
Number of Rows :1
update current13Fpositions set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '' ,
percentOut = '0'
where entryId = '130401740'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '00753G103'
Number of Rows :22
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66937979'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66071032'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '65214823'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '63438656'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '63638047'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '68468022'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '70206968'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '72119828'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '74422073'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '75765573'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '78005040'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '93730330'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '95222737'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '106359768'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '109899751'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '111761606'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '114200790'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '116185600'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '119493052'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '122315085'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '124883268'
update archive13F set
compid = '145532',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '127715738'
End Function
The Script is complete, exiting....