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: : 147429
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '147429'
The Shares Amount is 0
The cusip is J92628106
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = 'J92628106'
Number of Rows :1
update current13Fpositions set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = '' ,
percentOut = '0'
where entryId = '6879082'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = 'J92628106'
Number of Rows :12
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '80351418'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '82438980'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '84221759'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '85958762'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '96188074'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '96188493'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '96199999'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '100220018'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '102561128'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '104983450'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '107429709'
update archive13F set
compid = '147429',
sectorNum = '101002',
sectorDes = 'Auto Manufacturers',
issuerCik = ''
where entryId = '110721692'
End Function
The Script is complete, exiting....