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: : 151569
SELECT companies.* , sectors.level3des
FROM companies, sectors
WHERE companies.sector = sectors.level3num and compid = '151569'
The Shares Amount is 15537000
The cusip is 161635107
NOT OLD
Retrive Rows from Table:
select * from current13Fpositions where cusip = '161635107'
Number of Rows :2
update current13Fpositions set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771' ,
percentOut = '440.85'
where entryId = '51397445'
update current13Fpositions set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771' ,
percentOut = '49.99'
where entryId = '65081998'
End Function
Retrive Rows from Table:
select * from archive13F where cusip = '161635107'
Number of Rows :36
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '68237699'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '65757980'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '66537344'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '67683309'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '64991028'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '64010491'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '64819901'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '69099756'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '69824888'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '70831423'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '71739098'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '73699970'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '72757250'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '74816816'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '74745707'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '75919136'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '77353697'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '77995689'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '79240875'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '80262100'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '80350481'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '82436618'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '82113581'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '84220694'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '85276115'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '86618053'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '87489818'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '88117696'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '89053836'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '90610220'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '90787647'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '93777951'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '93563891'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '94648809'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '97305382'
update archive13F set
compid = '151569',
sectorNum = '999999',
sectorDes = 'N/A',
issuerCik = '0001025771'
where entryId = '100100886'
End Function
The Script is complete, exiting....