Comnados Fox
Comnados Fox
Comnados Fox
**
QUIT
COPY TO FILE FACTURACION TYPE FOXPLUS
COPY TO FILE Facturacion_por_servicio_2008_10 TYPE FOXPLUS
DO facturacion_por_servicio_2008_10.dbf
COPY TO
COPY TO MIGUEL TYPE FOXPLUS
USE d:\borador\restraf_imei_plan_200812.dbf SHARED
LIST
MODIFY STRUCTURE
SELECT * FROM nextel
MODIFY STRUCTURE
LIST STRUCTURE TO "d:\borador\diciembre.txt"
MODIFY STRUCTURE
BROWSE
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in ("1981054216","1981054177") GROUP BY NEXTEL, IM
EI, IMSI, TIPO INTO TABLE REPORTE
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in ("1981054216","1981054177","998199503","9810541
83","998196505","981054184","998193792","998196297","981054198","998197335","998
197327","981054171","981054299","998198416","981054241","981054221","981054246",
"998199042","998196231") GROUP BY NEXTEL, IMEI, IMSI, TIPO INTO TABLE REPORTE
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE1
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE2
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE1
in("1981054216","1981054177","998199503","981054183","998196505","981054184","99
8193792","998196297","981054198","998197335","998197327","981054171","981054299"
,"998198416","981054241","981054221","981054246","998199042","998196231","981054
317","981054320","998196438","981054191","998197154","998197156","998196895","98
1054251","998198422","981054178","998196213","994139397","998197018","981054170"
,"998198311","998197748","981047485","998199548","981054163","998197157","981054
298","998197749","998196476","981047486","981047494","998198076","981054289","98
1054234","998199510","981054272","981054309","998198251","998196436","998195630"
,"998198166","998198511","981054176","998196221","998199516","981054325","998198
474","981054207","981054287","981047491","981054294","998193811","981054279","98
1047492","981054315","998199357","981054225","981054215","981054187","998199521"
,"981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, I
MEI, IMSI, TIPO INTO TABLE REPORTE1
TABLE REPORTE1
TABLE REPOR
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE1
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277")GROUP BY NEXTEL, IMEI
, IMSI, TIPO INTO TABLE REPORTE2
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE2
BROWSE
"1981054216","1981054177","998199503","981054183","998196505","981054184","99819
3792","998196297","981054198","998197335","998197327","981054171","981054299","9
98198416","981054241","981054221","981054246","998199042","998196231","981054317
","981054320","998196438","981054191","998197154","998197156","998196895","98105
4251","998198422","981054178","998196213","994139397","998197018","981054170","9
98198311","998197748","981047485","998199548","981054163","998197157","981054298
","998197749","998196476","981047486","981047494","998198076","981054289","98105
4234","998199510","981054272","981054309","998198251","998196436","998195630","9
98198166","998198511","981054176","998196221","998199516","981054325","998198474
","981054207","981054287","981047491","981054294","998193811","981054279","98104
7492","981054315","998199357","981054225","981054215","981054187","998199521","9
81054273","981054237","998196470","998197477","981054277" GROUP BY NEXTEL, IMEI,
IMSI, TIPO INTO TABLE REPORTE2
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE REPORTE3
7491","981054294","998193811","981054279","981047492","981054315","998199357","9
81054225","981054215","981054187","998199521","981054273","981054237","998196470
","998197477","981054277") GROUP BY NEXTEL, IMEI, IMSI, TIPO INTO TABLE REPORTE3
("1981054216","1981054177","998199503","981054183","998196505","981054184","9981
93792","998196297","981054198","998197335","998197327","981054171","981054299","
998198416","981054241","981054221","981054246","998199042","998196231","98105431
7","981054320","998196438","981054191","998197154","998197156","998196895","9810
54251","998198422","981054178","998196213","994139397","998197018","981054170","
998198311","998197748","981047485","998199548","981054163","998197157","98105429
8","998197749","998196476","981047486","981047494","998198076","981054289","9810
54234","998199510","981054272","981054309","998198251","998196436","998195630","
998198166","998198511","981054176","998196221","998199516","981054325","99819847
4","981054207","981054287","981047491","981054294","998193811","981054279","9810
47492","981054315","998199357","981054225","981054215","981054187","998199521","
981054273","981054237","998196470","998197477","981054277") GROUP BY NEXTEL, IME
I, IMSI, TIPO INTO TABLE rep1
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in;
("1981054216","1981054177","1981054216","1981054177","998199503","981054183","9
98196505","981054184","998193792","998196297",;
"981054198","998197335","998197327","981054171","981054299","998198416","9810542
41","981054221","981054246","998199042",;
"998196231","981054317","981054320","998196438","981054191","998197154","9981971
56","998196895","981054251","998198422",;
"981054178","998196213","994139397","998197018","981054170","998198311","9981977
48","981047485","998199548","981054163",;
"998197157","981054298","998197749","998196476","981047486","981047494","9981980
76","981054289","981054234","998199510",;
"981054272","981054309","998198251","998196436","998195630","998198166","9981985
11","981054176","998196221","998199516",;
"981054325","998198474","981054207","981054287","981047491","981054294","9981938
11","981054279","981047492","981054315",;
"998199357",;
"981054225","981054215","981054187","998199521","981054273","981054237","9981964
70","998197477","981054277") GROUP BY; NEXTEL, IMEI, IMSI, TIPO INTO TABLE REPOR
TE
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in;
("1981054216","1981054177","1981054216","1981054177","998199503","981054183","9
98196505","981054184","998193792","998196297",;
"981054198","998197335","998197327","981054171","981054299","998198416","9810542
41","981054221","981054246","998199042",;
"998196231","981054317","981054320","998196438","981054191","998197154","9981971
56","998196895","981054251","998198422",;
"981054178","998196213","994139397","998197018","981054170","998198311","9981977
48","981047485","998199548","981054163",;
"998197157","981054298","998197749","998196476","981047486","981047494","9981980
76","981054289","981054234","998199510",;
"981054272","981054309","998198251","998196436","998195630","998198166","9981985
11","981054176","998196221","998199516",;
"981054325","998198474","981054207","981054287","981047491","981054294","9981938
11","981054279","981047492","981054315",;
"998199357",;
"981054225","981054215","981054187","998199521","981054273","981054237","9981964
70","998197477","981054277") GROUP BY;
NEXTEL, IMEI, IMSI, TIPO INTO TABLE REPORTE
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in;
("1981054216","1981054177","1981054216","1981054177","998199503","981054183","9
98196505","981054184","998193792","998196297",;
"981054198","998197335","998197327","981054171","981054299","998198416","9810542
41","981054221","981054246","998199042",;
"998196231","981054317","981054320","998196438","981054191","998197154","9981971
56","998196895","981054251","998198422",;
"981054178","998196213","994139397","998197018","981054170","998198311","9981977
48","981047485","998199548","981054163",;
"998197157","981054298","998197749","998196476","981047486","981047494","9981980
76","981054289","981054234","998199510",;
"981054272","981054309","998198251","998196436","998195630","998198166","9981985
11","981054176","998196221","998199516",;
"981054325","998198474","981054207","981054287","981047491","981054294","9981938
11","981054279","981047492","981054315",;
"998199357",;
"981054225","981054215","981054187","998199521","981054273","981054237","9981964
70","998197477","981054277") GROUP BY;
NEXTEL, IMEI, IMSI, TIPO INTO TABLE REP2
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in;
("1981054216","1981054177","1981054216","1981054177","998199503","981054183","9
98196505","981054184","998193792","998196297",;
"981054198","998197335","998197327","981054171","981054299","998198416","9810542
41","981054221","981054246","998199042",;
"998196231","981054317","981054320","998196438","981054191","998197154","9981971
56","998196895","981054251","998198422",;
"981054178","998196213","994139397","998197018","981054170","998198311","9981977
48","981047485","998199548","981054163",;
"998197157","981054298","998197749","998196476","981047486","981047494","9981980
76","981054289","981054234","998199510",;
"981054272","981054309","998198251","998196436","998195630","998198166","9981985
11","981054176","998196221","998199516",;
"981054325","998198474","981054207","981054287","981047491","981054294","9981938
11","981054279","981047492","981054315",;
"998199357",;
"981054225","981054215","981054187","998199521","981054273","981054237","9981964
70","998197477","981054277") GROUP BY;
NEXTEL, IMEI, IMSI, TIPO INTO TABLE REP3
copy to new_report type foxplus
SELECT NEXTEL, IMEI, IMSI, TIPO, COUNT(1) AS CANTIDAD FROM restraf_imei_plan_200
812.dbf WHERE ALLTRIM(nextel) in;
("1981054216","1981054177","1981054216","1981054177","1998199503","1981054183",
"1998196505","1981054184","1998193792","1998196297",;
"1981054198","1998197335","1998197327","1981054171","1981054299","1998198416","1
981054241","1981054221","1981054246","1998199042",;
"1998196231","1981054317","1981054320","1998196438","1981054191","1998197154","1
998197156","1998196895","1981054251","1998198422",;
"1981054178","1998196213","1994139397","1998197018","1981054170","1998198311","1
998197748","1981047485","1998199548","1981054163",;
"1998197157","1981054298","1998197749","1998196476","1981047486","1981047494","1
998198076","1981054289","1981054234","1998199510",;
"1981054272","1981054309","1998198251","1998196436","1998195630","1998198166","1
998198511","1981054176","1998196221","1998199516",;
"1981054325","1998198474","1981054207","1981054287","1981047491","1981054294",;
"1998193811","1981054279","1981047492","1981054315",;
"1998199357",;
"981054225","981054215","981054187","998199521","981054273","981054237","9981964
70","998197477","981054277") GROUP BY;
NEXTEL, IMEI, IMSI, TIPO INTO TABLE REP4
copy to new_report type foxplus
copy to new_report2 type foxplus
copy to new_report3 type foxplus