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: : 145622
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '145622'
The Shares Amount is 0
The cusip is 096631106
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '096631106'
Number of Rows :1
update current13Fpositions set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '' ,
percentOut = '0'
where entryId = '10825978'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '096631106'
Number of Rows :9
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66810028'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '65079445'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '63386522'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '68491938'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '75795796'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '77749569'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '79930048'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '120926227'
update archive13F set
compid = '145622',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '123957739'
End Function
The Script is complete, exiting....