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: : 157003
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '157003'
The Shares Amount is 140974000
The cusip is 561641101
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '561641101'
Number of Rows :0
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '561641101'
Number of Rows :12
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '67503591'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '66626478'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '64868889'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '69865341'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '71155806'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '73310922'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '75046438'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '76974547'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '78837412'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '81172122'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '82234442'
update archive13F set
compid = '157003',
sectorNum = '101005',
sectorDes = 'Trucks & Other Vehicles',
issuerCik = '0001507337'
where entryId = '85482348'
End Function
The Script is complete, exiting....