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: : 160331
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '160331'
The Shares Amount is 0
The cusip is 015271703
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '015271703'
Number of Rows :3
update current13Fpositions set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '' ,
percentOut = '0'
where entryId = '42091118'
update current13Fpositions set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '' ,
percentOut = '0'
where entryId = '42099192'
update current13Fpositions set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '' ,
percentOut = '0'
where entryId = '56974580'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '015271703'
Number of Rows :14
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '67393658'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66723483'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66874238'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '66404411'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '65023688'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '65056436'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '63361356'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '63558562'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '64110445'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '68579321'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '68578431'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '70038138'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '38278627'
update archive13F set
compid = '160331',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = ''
where entryId = '125369484'
End Function
The Script is complete, exiting....