You are on page 1of 16

select * from HistoricalCompuesto where IdPeriod=139 and IdUser=12929

select * from historicalresidual where IdPeriod=137 and IdUser=17534

select * from periodresidual where IdPeriod=137 and IdUser=17534


select *from [user] where nroDocument='42874631'
select *from [suscription]
select *from [Affiliate]
select *from [Bonus] where idsponsor=15468 and casecomission='Bono Logro de Rango'
select *from [Bonus] where casecomission='migracion'
select *from [Bonus] where IdSlave=19899

insert into [Bonus]


(IdSponsor,IdSlave,LevelSponsor,DateRegister,TypeChange,TypeBonus,Amount,ForLevel,F
orCondition,CaseComission,IdSuscription,IdStatus,Percents,Points,DateInsert)
values(1770,'2020-07-07',212.28,1,1,1,1,2,1,'USD',3.538,1,'Pago de Cuota
EA10159143',1,'2020-07-07 9:00:00.170','2020-07-07')

select *from [TypeBonus]

select * from typewallettransaction

update bonus set amount='67.5' where id=172402


update bonus set percents='5.00' where id=163586
update bonus set ForCondition='SI' where id=190515
update bonus set IdStatus='1' where id=180446

update [user] set Lastname='Mateo Guerrero' where id=12856

select * from PeriodCompuesto where dataexecute>='2021-10-05 18:00:00.000'

select *from Wallet where IdUser=15468


select *from WalletTransaction where ReferenceData='Pago de Comisiones del
Periodo : 2021-11-01 al 2021-11-07'

select *from WalletTransaction where ReferenceData='Pago de Comisiones del


Periodo : 2021-10-15 al 2021-10-21'

insert into WalletTransaction


(idwallet,idtypewallettransaction,idcurrency,inicialdate,amount,isavailable,idtipoc
ambio,AvailabitilyDate,ReferenceData,SuccessfulTransation)
values(2063,'8',1,'2021-10-19 01:05:44.337','25.00',1,577,'2021-10-19
01:05:44.337','Pago de Comisiones del Periodo : 2021-10-08 al 2021-10-14',1)

select *from WalletTransaction where idwallet=2063

update WalletTransaction set InicialDate='2021-11-13 01:11:36.327' where


ReferenceData='Pago de Comisiones del Periodo : 2021-10-08 al 2021-10-14'

update WalletTransaction set InicialDate='2021-11-13 01:11:36.327' where


IdWalletTransaction=51192

update wallet set AvailableBalance=50.25 where IdWallet=2063


update wallet set AccountingBalance=50.25 where IdWallet=2063

select *from WalletTransaction where InicialDate>='2021-10-13 00:00:00.000'


select * from FirtsAffiliation
select * from SecondAffiliation
select * from ThirdAffiliation

select * from package

update historicalresidual set DateExecute='2021-08-26 10:45:23.897' where id=310881

select * from range

SELECT * FROM AWARDRANGES

SELECT * FROM AWARDMETHODS

UPDATE historicalresidual SET IdRange=5 WHERE ID=166940


UPDATE HistoricalCompuesto SET IdRange=2 WHERE ID=669444
UPDATE HistoricalCompuesto SET IdPeriod=107 WHERE IdPeriod=108
UPDATE historicalresidual SET IdPeriod=107 WHERE IdPeriod=108

select * from HistoricalCompuesto where IdUser=12853

update HistoricalCompuesto set Estatus=1 where IdUser=12853


exec [dbo].[HistoricalCompuestoAllSocios] 103

exec [dbo].[HistoricalResidualAllSocios] 99

select *from period

SET IDENTITY_INSERT period on

insert into period (id,initialDate,EndDate,PayDate,status,boolDelete)


values(107,'2021-03-15','2021-03-21','2021-03-26',1,0)

SET IDENTITY_INSERT [period] on

insert into [period] (id,initialDate,EndDate,PayDate,status,boolDelete) values


(1,'2019-01-01 00:00:00.000','2019-01-07 00:00:00.000','2019-01-12
00:00:00.000',1,0)

SET IDENTITY_INSERT [period] off

insert into [period] (id,initialDate,EndDate,PayDate,status,boolDelete)


values (2019-01-01 00:00:00.000,2019-01-07 00:00:00.000,2019-01-12
00:00:00.000,1,0)

update [period] set initialDate='2021-04-01 00:00:00.000' where id =109


update [period] set Enddate='2021-04-07 00:00:00.000' where id =109
update [period] set PayDate='2021-04-12 00:00:00.000' where id =109
update [period] set status='1' where id =109

1 1 Ventanilla Lima
2 1 Agente Provincia
3 1 Agente Lima
4 1 Banca Movil
5 1 Banca por Internet
6 1 Cuenta BCP Yape
7 2 Banca Movil
8 2 Banca por Internet
9 3 Paypal
12 1 Ventanilla Provincia
13 1 Cajero Lima
14 1 Cajero Provincia
15 2 Ventanilla Lima
16 2 Ventanilla Provincia
17 4 Wallet

Diana Carolina
margoth rojas
select *from [user] where name like '%nelson javier%'
select *from [user] where lastname like '%prueba%' a

select *from [user] where id=13069

select *from [user] where id=13033


select *from [user] where id=19583
select *from [user] where id=19638
select *from [user] where id=19755

select *from [user] where email like '%omarurteaga@hotmail.com%'

select *from [user] where nroDocument like '%10105605%'


select *from [user] where username like '%LT41926529%'
select *from [user] where username like '%47346000%'
select *from [user] where nroTelf like '%3164896469%'

select *from [user] where id=17218

select *from range

select *from [COUNTRY] WHERE IDCOUNTRY=45

select *from [Affiliate] where idson=17646


select *from [Affiliate] where idSponsor=16879

UPDATE [Affiliate] SET idSponsor=13033 where id=6287

select *from [user] where id=14234

select *from user where id=11798

select *from [user] where id=18190

'------------------------------------- ------------------------------'
UPDATE [user] SET nroDocument='07235016' where id=14665
UPDATE [user] SET name='Oscar Karoll' where id=17799
UPDATE [user] SET lastname='Peña' where id=13208
UPDATE [user] SET email='omarurteaga@outlook.com' where id=17074
UPDATE [user] SET idResidenceCountry=167 where id=17799
UPDATE [user] SET idNationality=167 where id=17799
UPDATE [user] SET
password='5ADDF033BECBA04EFBEEEC06FBE73152E63102F344A7E5C2CE6770DD3D3DAB8FA307080F2
272DE6EAD58BF8C32BC69EDDD732D9DA2C9999E5731A7BBDDA5F22C' where id=17799
UPDATE [user] SET username='RP45040953' where id=13208
UPDATE [user] SET nroTelf='+51923567739' where id=17799
UPDATE [user] SET districtAddress='Puente Piedra' where id=17799
UPDATE [user] SET Address='Condómino monte grande casa 6 Blok 6' where id=17799
UPDATE [user] SET idState=1 where id=13531

Contraseña Generica MR355500087


'------------------------------------- ------------------------------'
select *from [user] where id=17276
select *from [user] where id=12973
select *from [user] where id=12974
select *from [user] where id=17398
select *from [user] where id=16139
select *from [user] where id=16161
select *from [user] where id=16161
select *from [user] where id=16335

15176 12929 12918 13115 12929 12952 12952 12956 12877 12889 12873 12867 12881
12981 16832 16842 16474 Mauricio 16835 16899

select *from [user] where name like '%Diana Carolina%'


select *from [user] where lastname like '%cabrera quiroga%'
select *from [user] where username like '%73528597%'

select *from [Affiliate] where idsponsor=13449


select *from [Affiliate] where idson=16409

select *from Upliner where idupliner=19984


select *from Upliner where idupliner=15083
select *from Upliner where idupliner=15305
select *from Upliner where idSon=19984
select *from Upliner where idSon=16161

update [Affiliate] set idsponsor=12892 where id=9076


UPDATE [user] SET nroDocument=10456764 where id=2395
update Upliner set idUpliner=12865 where id=5082
update Upliner set idson=16835 where id=2145

insert into [Upliner] (idUpliner,idSon,registrationDate)


values (15691,16161,'2020-11-19 14:08:58.823')

insert into [Affiliate] (idSponsor,idSon,affiliateDate)


values (15691,16161,'')

select *from Upliner where idupliner=


-------------------------- .--------------------------------------------
select * from Paydetailtemporal

update wallet set AvailableBalance=10.5 where IdWallet=3047


update wallet set AccountingBalance=10.5 where IdWallet=3047

select *from Wallet where iduser=16653

select *from WalletTransaction where ReferenceData='Pago de Comisiones del


Periodo : 2021-08-22 al 2021-08-31'

select *from WalletTransaction where IdWallet=3047 AND IdWalletTransaction=25882


select *from WalletTransaction where IdWalletTransaction=6493
select *from [bonus] where IdSlave=12886
select *from [Affiliate] where idsponsor=18627
select *from [Affiliate] where idSon=20480
12892

select *from WalletTransaction where AvailabitilyDate='2021-06-07 00:00:00.000'and


ReferenceData='Recepción de transferencia wallet de usuario : master'

update WalletTransaction set AvailabitilyDate='2021-06-26 00:00:00.000' where


AvailabitilyDate='2021-06-21 00:00:00.000'and ReferenceData='Recepción de
transferencia wallet de usuario : master'
update WalletTransaction set Amount=6 where IdWalletTransaction=43877

select *from [user] where name like '%kevin%'


select *from [user] where lastname like '%pruebas%'
select *from [user] where username like '%6210583%'
select *from [user] where id=18190
select *from [user] where id=16138
select *from [user] where id=16139
select *from [user] where id=16160
select *from [user] where id=16186
select *from [user] where id=16269
select *from [user] where id=16619
select *from [user] where id=16780
select *from [user] where id=12892

select *from [user] where nroDocument='70092082'

select *from [user] where id=20124

update Suscription set status=1 where id=763


update Suscription set idUser=18627 where iduser=20480 and id=5994

select *from [suscription] WHERE idUser=13033 and id=8230

select *from package

select *from Payment WHERE idSuscription=7865


select *from Payment WHERE idSuscription=7195
select *from Payment WHERE idSuscription=7099
select *from [MembershipPayDetail] WHERE idSuscription=3638
exec dbo.p_GetScheduleJSONById 6021
exec dbo.p_GetScheduleJSONById 5508
exec dbo.p_GetScheduleJSONById 6119

------- Payment ---------

insert into [Payment]


(Idsuscription,Quotedescription,NextExpiration,DollarExchange,QuoteUsd,Quote,Amorti
zation,Capitalbalance,Porcentaje,Interested,verif,Obs,Paydate,Ptos,Isquoteinitial,P
ositionOnSchedule,NumberQuotePay,AmortizacionUsd,CapitalbalanceUsd)
values (936 Cuota nro: 11 2021-05-27 3.540 15.00 53.10 53.10 106.20 0.92
0.00 0 NULL NULL 0.00 0 12 NULL NULL NULL

select *from [Affiliate] where idsponsor=14054

select *from [flyer] where iduser=18228

EXEC dbo.DELETEUSERBYID 20265

select *from Upliner where idupliner=15349

select *from [UsersPendings] where idupliner=15349

EXEC dbo.DELETEUSERBYID 20684 20681 20680 20191

select *from Upliner where idupliner=15434

------- suscription ---------

insert into [suscription]


(iduser,idPackage,creationDate,observation,status,modificationDate,prestatus,boolMi
gration)
values (16161,20,'2020-11-19 14:08:58.823','',1,'2020-11-19 14:08:58.823','',0)

------- MembershipayDetail ---------

insert into [MembershipPayDetail]


(scheduleJSON,idMethodPayment,creationDate,modificationDate,idSuscription,idTransac
tion,intent,status)
values ('[{"IdMembershipDetail":1,"QuoteDescription":"Inicial N° :
1","NextExpiration":"2020-06-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":707.85,"Percent":0.08,"Interested":0.0,"TicketImage":"WalletCP6
0115885","verif":1,"NroOperacion":"WalletCP60115885","Obs":"","IsQuoteInitial":1,"i
dPayMethod":"17","PayDate":"2020-06-
01T00:00:00","pts":15.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":2,"QuoteDescription":"Cuota N° : 1","NextExpiration":"2020-
07-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":653.4,"Percent":0.15,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":3,"QuoteDescription":"Cuota N° : 2","NextExpiration":"2020-
08-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":598.95,"Percent":0.23,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":4,"QuoteDescription":"Cuota N° : 3","NextExpiration":"2020-
09-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":544.5,"Percent":0.31,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":5,"QuoteDescription":"Cuota N° : 4","NextExpiration":"2020-
10-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":490.05,"Percent":0.38,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":6,"QuoteDescription":"Cuota N° : 5","NextExpiration":"2020-
11-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":435.6,"Percent":0.46,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":7,"QuoteDescription":"Cuota N° : 6","NextExpiration":"2020-
12-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":381.15,"Percent":0.54,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":8,"QuoteDescription":"Cuota N° : 7","NextExpiration":"2021-
01-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":326.7,"Percent":0.62,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":9,"QuoteDescription":"Cuota N° : 8","NextExpiration":"2021-
02-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":272.25,"Percent":0.69,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":10,"QuoteDescription":"Cuota N° : 9","NextExpiration":"2021-
03-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":217.8,"Percent":0.77,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":11,"QuoteDescription":"Cuota N° : 10","NextExpiration":"2021-
04-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":163.35,"Percent":0.85,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":12,"QuoteDescription":"Cuota N° : 11","NextExpiration":"2021-
05-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":108.9,"Percent":0.92,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":13,"QuoteDescription":"Cuota N° : 12","NextExpiration":"2021-
06-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":54.45,"Percent":1.0,"Interested":0.0,"TicketImage":"","verif":0
,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pts
":0.0,"CuentaEmpresaNroOperacion":null}]','1','2021-06-01 00:00:00.000','2020-06-01
00:00:00.000',5874,'T0001','CAPTURE','COMPLETED')

update [MembershipPayDetail] set


scheduleJSON='[{"IdMembershipDetail":1,"QuoteDescription":"Inicial N° :
1","NextExpiration":"2020-06-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":707.85,"Percent":0.08,"Interested":0.0,"TicketImage":"WalletCP6
0115885","verif":1,"NroOperacion":"WalletCP60115885","Obs":"","IsQuoteInitial":1,"i
dPayMethod":"17","PayDate":"2020-06-
01T00:00:00","pts":15.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":2,"QuoteDescription":"Cuota N° : 1","NextExpiration":"2020-
07-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":653.4,"Percent":0.15,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":3,"QuoteDescription":"Cuota N° : 2","NextExpiration":"2020-
08-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":598.95,"Percent":0.23,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":4,"QuoteDescription":"Cuota N° : 3","NextExpiration":"2020-
09-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":544.5,"Percent":0.31,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":5,"QuoteDescription":"Cuota N° : 4","NextExpiration":"2020-
10-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":490.05,"Percent":0.38,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":6,"QuoteDescription":"Cuota N° : 5","NextExpiration":"2020-
11-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":435.6,"Percent":0.46,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":7,"QuoteDescription":"Cuota N° : 6","NextExpiration":"2020-
12-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":381.15,"Percent":0.54,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":8,"QuoteDescription":"Cuota N° : 7","NextExpiration":"2021-
01-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":326.7,"Percent":0.62,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":9,"QuoteDescription":"Cuota N° : 8","NextExpiration":"2021-
02-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":272.25,"Percent":0.69,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":10,"QuoteDescription":"Cuota N° : 9","NextExpiration":"2021-
03-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":217.8,"Percent":0.77,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":11,"QuoteDescription":"Cuota N° : 10","NextExpiration":"2021-
04-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":163.35,"Percent":0.85,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"p
ts":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":12,"QuoteDescription":"Cuota N° : 11","NextExpiration":"2021-
05-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":108.9,"Percent":0.92,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pt
s":0.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":13,"QuoteDescription":"Cuota N° : 12","NextExpiration":"2021-
06-
01T00:00:00","DollarExchange":3.63,"QuoteUsd":15.0,"Quote":54.45,"Amortization":54.
45,"CapitalBalance":54.45,"Percent":1.0,"Interested":0.0,"TicketImage":"","verif":0
,"NroOperacion":"","Obs":"","IsQuoteInitial":0,"idPayMethod":"","PayDate":null,"pts
":0.0,"CuentaEmpresaNroOperacion":null}]' where id=6310

[{"IdMembershipDetail":1,"QuoteDescription":"Inicial nro:
1","NextExpiration":"2020-06-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":5.0,"Quote":17.7,"Amortization":17.7,
"CapitalBalance":4141.8,"Percent":0.0,"Interested":0.0,"TicketImage":"login20200602
104528__13818LC71329930.png","verif":1,"NroOperacion":"7862896~01148341","Obs":"","
IsQuoteInitial":0,"idPayMethod":"1~1","PayDate":"2020-06-
01T00:00:00","pts":5.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":2,"QuoteDescription":"Migracion","NextExpiration":"2020-07-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":10.0,"Quote":35.4,"Amortization":35.4
,"CapitalBalance":4124.1,"Percent":0.01,"Interested":0.0,"TicketImage":"71329930_00
","verif":1,"NroOperacion":"Wallet","Obs":"","IsQuoteInitial":0,"idPayMethod":"17",
"PayDate":"2020-08-03T00:00:00","pts":10.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":3,"QuoteDescription":"Migracion","NextExpiration":"2020-08-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":15.0,"Quote":53.1,"Amortization":53.1
,"CapitalBalance":4088.7,"Percent":0.03,"Interested":0.0,"TicketImage":"LC71329930_
GO_1","verif":1,"NroOperacion":"2912551","Obs":"","IsQuoteInitial":0,"idPayMethod":
"6","PayDate":"2020-08-10T00:00:00","pts":15.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":4,"QuoteDescription":"Migracion","NextExpiration":"2020-09-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":60.0,"Quote":212.4,"Amortization":212
.4,"CapitalBalance":4035.6,"Percent":0.08,"Interested":0.0,"TicketImage":"71329930_
001","verif":1,"NroOperacion":"69684095~wallet","Obs":"","IsQuoteInitial":0,"idPayM
ethod":"4~17","PayDate":"2020-09-
14T00:00:00","pts":60.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":5,"QuoteDescription":"Cuota nro: 1","NextExpiration":"2020-
10-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":3823.2,"Percent":0.15,"Interested":0.0,"TicketImage":"LC7132993
0F10-14-2020 11°15°37
PM_1.jpg","verif":1,"NroOperacion":"80212368","Obs":"","IsQuoteInitial":0,"idPayMet
hod":"4","PayDate":"2020-10-
14T00:00:00","pts":90.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":6,"QuoteDescription":"Cuota nro: 2","NextExpiration":"2020-
11-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":3504.6,"Percent":0.23,"Interested":0.0,"TicketImage":"LC7132993
0F10-25-2020 7_04_25
PM_1.jpg","verif":1,"NroOperacion":"77393122","Obs":null,"IsQuoteInitial":0,"idPayM
ethod":"0","PayDate":"2020-10-
25T00:00:00","pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":7,"QuoteDescription":"Cuota nro: 3","NextExpiration":"2020-
12-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":3186.0,"Percent":0.31,"Interested":0.0,"TicketImage":"LC7132993
0F12-22-2020 10_35_28
AM_1.jpg","verif":1,"NroOperacion":"83387121","Obs":null,"IsQuoteInitial":0,"idPayM
ethod":"4","PayDate":"2020-12-
22T00:00:00","pts":90.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":8,"QuoteDescription":"Cuota nro: 4","NextExpiration":"2021-
01-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":2867.4,"Percent":0.38,"Interested":0.0,"TicketImage":"LC7132993
0F1-9-2021 9_24_57 AM_1.jpg","verif":1,"NroOperacion":"PWCOD-
2790","Obs":null,"IsQuoteInitial":0,"idPayMethod":"17","PayDate":"2021-01-
09T09:24:59.7003013-05:00","pts":90.0,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":9,"QuoteDescription":"Cuota nro: 5","NextExpiration":"2021-
02-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":2548.8,"Percent":0.46,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null
,"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":10,"QuoteDescription":"Cuota nro: 6","NextExpiration":"2021-
03-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":2230.2,"Percent":0.54,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null
,"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":11,"QuoteDescription":"Cuota nro: 7","NextExpiration":"2021-
04-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":1911.6,"Percent":0.62,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null
,"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":12,"QuoteDescription":"Cuota nro: 8","NextExpiration":"2021-
05-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":1593.0,"Percent":0.69,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null
,"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":13,"QuoteDescription":"Cuota nro: 9","NextExpiration":"2021-
06-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":1274.4,"Percent":0.77,"Interested":0.0,"TicketImage":"","verif"
:0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null
,"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":14,"QuoteDescription":"Cuota nro: 10","NextExpiration":"2021-
07-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":955.8,"Percent":0.85,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null,
"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":15,"QuoteDescription":"Cuota nro: 11","NextExpiration":"2021-
08-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":637.2,"Percent":0.92,"Interested":0.0,"TicketImage":"","verif":
0,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null,
"pts":0.00,"CuentaEmpresaNroOperacion":null},
{"IdMembershipDetail":16,"QuoteDescription":"Cuota nro: 12","NextExpiration":"2021-
09-
01T00:00:00","DollarExchange":3.54,"QuoteUsd":90.0,"Quote":318.6,"Amortization":318
.6,"CapitalBalance":318.6,"Percent":1.0,"Interested":0.0,"TicketImage":"","verif":0
,"NroOperacion":"","Obs":null,"IsQuoteInitial":0,"idPayMethod":"0","PayDate":null,"
pts":0.00,"CuentaEmpresaNroOperacion":null}]

update [suscription] set idpackage=5 where id =865


update [suscription] set status=2 where id =3789

select *from [wallet] where iduser=15914


select *from [affiliate] where idsponsor=15298
select *from [upliner] where idupliner=15298
select *from [userspendings] where idupliner=15298

-------------------------- .--------------------------------------------

select *from [SubtipoPago]

select *from State

select *from [Package]


update [Package] set volume=180 where id=18
update [Package] set initialprice=1080 where id=18
update [Package] set price=15480 where id=18
update [Package] set name='Clasic' where id=21

3 Kit de Inicio
4 Expedition
5 Experience
6 Light
7 Standard
8 Plus
9 Top
10 Vitalicia
15 Evolution
16 Stand By
17 Mini
18 Vitalicia Premium
19 Platinium
20 Gold
21 Clasic
22 Infinite
23 ELITE
24 Premium

select *from [DocumentType] where idcountry=30


select *from [COUNTRY] WHERE IDCOUNTRY=49

insert into [country](idcountry,iso,name,nicename,iso3,numcode,phonecode,symbol)


values (240,'AF','AFGHANISTAN','Afghanistan','AFG','4','93','+')

select *from [firstAffiliationMembership] where id=15460

WHERE nicename LIKE '%RO%'

update [COUNTRY] set name=TUVALU WHERE idcountry=

select *from [user] where id=14669

UPDATE [user] SET nroDocument= where id=


select *from [user] where id=12858

select *from [user] where id=13326

select *from [user] where id=12854

select *from [ComissionPayment]

EXEC dbo.DELETEUSERBYID 16536

---------------------- BONUS --------------------

select *from [user] where id=15403


select *from [bonus] where idslave=15403

select *from [user] where id=15403


select *from [user] where id=15403

select *from [user] where id=15367


select *from [user] where id=15356
select *from [user] where id=15352
select *from [user] where id=15351
select *from [user] where id=15348
select *from [user] where id=12853

select *from [suscription] where iduser=16204


select *from [suscription] where iduser=15403
select *from [suscription] where iduser=15367
select *from [suscription] where iduser=15356
select *from [suscription] where iduser=15352
select *from [suscription] where iduser=15351
select *from [suscription] where iduser=15348
select *from [suscription] where iduser=12853

select *from [firtsaffiliation]


update [firtsaffiliation] set pointshigher=30 where id=1
update [firtsaffiliation] set pointshigher=5 where id=3
update [firtsaffiliation] set pointshigher=4 where id=4
update [firtsaffiliation] set pointshigher=3 where id=5
update [firtsaffiliation] set pointshigher=2 where id=6
update [firtsaffiliation] set pointshigher=1 where id=7

update [firtsaffiliation] set pointsless=15 where id=1


update [firtsaffiliation] set pointsless=2.5 where id=3
update [firtsaffiliation] set pointsless=2 where id=4
update [firtsaffiliation] set pointsless=1.5 where id=5
update [firtsaffiliation] set pointsless=1 where id=6
update [firtsaffiliation] set pointsless=0.5 where id=7

update [firtsaffiliation] set rangecompuesto=3 where id=5


update [firtsaffiliation] set rangecompuesto=4 where id=6
update [firtsaffiliation] set rangecompuesto=5 where id=7

update [firtsaffiliation] set pointsdirectcompuesto=360 where id=5


update [firtsaffiliation] set pointsdirectcompuesto=450 where id=6
update [firtsaffiliation] set pointsdirectcompuesto=540 where id=7

select *from [bonus] where idslave=16201

select *from [Secondaffiliation]


update [Secondaffiliation] set pointshigher=30 where id=1
update [Secondaffiliation] set pointshigher=10 where id=2
update [Secondaffiliation] set pointshigher=5 where id=3
update [Secondaffiliation] set pointshigher=4 where id=4
update [Secondaffiliation] set pointshigher=3 where id=5
update [Secondaffiliation] set pointshigher=2 where id=6
update [Secondaffiliation] set pointshigher=1 where id=7

update [Secondaffiliation] set pointsless=15 where id=1


update [Secondaffiliation] set pointsless=5 where id=2
update [Secondaffiliation] set pointsless=2.5 where id=3
update [Secondaffiliation] set pointsless=2 where id=4
update [Secondaffiliation] set pointsless=1.5 where id=5
update [Secondaffiliation] set pointsless=1 where id=6
update [Secondaffiliation] set pointsless=0.5 where id=7

update [Secondaffiliation] set rangecompuesto=3 where id=5


update [Secondaffiliation] set rangecompuesto=4 where id=6
update [Secondaffiliation] set rangecompuesto=5 where id=7

update [Secondaffiliation] set pointsdirectcompuesto=360 where id=5


update [Secondaffiliation] set pointsdirectcompuesto=450 where id=6
update [Secondaffiliation] set pointsdirectcompuesto=540 where id=7

select *from [User] where id=16404

select *from PeriodCompuesto

select *from [Wallet]

select *from [Wallet2]


select *from [WalletTransaction2]
select *from [Wallet]

where iduser=15946
select *from [affiliate] where idsponsor=15298
select *from [upliner] where idupliner=15298

select *from [user] where id=13099

select *from [suscription] where iduser=14802

select *from [MembershipPayDetail] where idSuscription like '%2028%' and id=7005

exec dbo.p_GetScheduleJSONById 2028

select *from [Package]

UPDATE [suscription] SET status=1 where id=1872

UPDATE [user] SET idstate=1 where id=14645

select *from [Country]

select *from [user] where id=14786


select *from [user] where id=15235
select *from [user] where id=13335
select *from [Affiliate] where idson=13452
select *from [Affiliate] where idsponsor=14785

---------------------------------- ARBOL RESIDUAL - UPLINER


------------------------------------

select *from [user] where name like '%FRANCISCO%'


select *from [user] where lastname like '%Ezequiel%'
select *from [user] where id=14658

insert into [Upliner](idupliner,idSon)


values (13746,14439)

select *from Upliner where idupliner=14647

update Upliner set idUpliner=13135 where id=351

select *from Upliner where idSon=14439


select *from Upliner where idSon=13941
select *from Upliner where idSon=13568
select *from Upliner where idSon=13499
select *from Upliner where idSon=13465
select *from Upliner where idSon=14676
select *from Upliner where idSon=14507

select *from Upliner where idSon=13245


select *from Upliner where idSon=13250

select *from Upliner where idSon=15463

update Upliner set idUpliner=13894 where id=514

SET IDENTITY_INSERT [upliner] on

insert into [Upliner](idupliner,idSon)


values (13271,13894)

SET IDENTITY_INSERT [Affiliate] off

select *from [User] where name like '%juana%'


select *from [User] where name like '%ruben%'
select *from [User] where id like '%13395%'
select *from [Affiliate] where idson=13440
select *from [Affiliate] where idson=13091
select *from [Affiliate] where idSponsor=14676

13442

2672 13428 13612 NULL

SET IDENTITY_INSERT [Affiliate] off

insert into [Affiliate](idSponsor,idSon,affiliateDate)


values (13326,14578,'')

select *from [Affiliate] where idson=13072

UPDATE [DocumentType] SET name='CARTE DE IDENTITATE' WHERE ID=710

update [Affiliate] set idSponsor=13326 where id=2050

update [user] set createDate='' where id=14436

update [user] set name='gloria' where id=14436

update [user] set email='castrokennergoyan@gmail.com' where id=13908


update [user] set nroDocument='0520029670027' where id=14212
update [user] set username='LA46139157' where id=14212
update [user] set idDocument='130' where id=14499

update [user] set createDate='2019-01-01' where id=12853

exec GetPointsDir

You might also like