Revision 1115 trunk/org.gvsig.postgresql/org.gvsig.postgresql.provider/src/test/resources/org/gvsig/postgresql/dal/usecases/arena2/testMultipleExpansionOfCalculatedField.sql
testMultipleExpansionOfCalculatedField.sql | ||
---|---|---|
1 | 1 |
|
2 |
-- testToDoubleWithSpecialFunctions SQL |
|
2 |
-- normalize-spaces true |
|
3 |
-- strip-start true |
|
4 |
-- remove-nl true |
|
5 |
-- replace-nl-by-space true |
|
6 |
-- trim-end true |
|
3 | 7 |
|
4 |
-- Select |
|
5 |
SELECT "dbtest"."public"."ARENA2_CONDUCTORES"."LID_CONDUCTOR", "dbtest"."public"."ARENA2_CONDUCTORES"."ID_ACCIDENTE", |
|
6 |
"dbtest"."public"."ARENA2_CONDUCTORES"."LID_VEHICULO", "dbtest"."public"."ARENA2_CONDUCTORES"."ID_VEHICULO", |
|
7 |
"dbtest"."public"."ARENA2_CONDUCTORES"."POSIBLE_RESPONSABLE", "dbtest"."public"."ARENA2_CONDUCTORES"."FECHA_NACIMIENTO", |
|
8 |
"dbtest"."public"."ARENA2_CONDUCTORES"."SEXO", "dbtest"."public"."ARENA2_CONDUCTORES"."NACIONALIDAD", |
|
9 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PAIS_RESIDENCIA", "dbtest"."public"."ARENA2_CONDUCTORES"."PROVINCIA_RESIDENCIA", |
|
10 |
"dbtest"."public"."ARENA2_CONDUCTORES"."MUNICIPIO_RESIDENCIA", "dbtest"."public"."ARENA2_CONDUCTORES"."ASISTENCIA_SANITARIA", |
|
11 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_FACT_ATENCION", "dbtest"."public"."ARENA2_CONDUCTORES"."FACTORES_ATENCION", |
|
12 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_PRES_ERROR", "dbtest"."public"."ARENA2_CONDUCTORES"."PRESUNTOS_ERRORES", |
|
13 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CARACT_PERMISO", "dbtest"."public"."ARENA2_CONDUCTORES"."CLASE_PERMISO", |
|
14 |
"dbtest"."public"."ARENA2_CONDUCTORES"."FECHA_PERMISO", "dbtest"."public"."ARENA2_CONDUCTORES"."MOTIVO_DESPLAZAMIENTO", |
|
15 |
"dbtest"."public"."ARENA2_CONDUCTORES"."DESPLAZAMIENTO_PREVISTO", "dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_CINTURON", |
|
16 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_CASCO", "dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_BRAZOS", |
|
17 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_ESPALDA", "dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_TORSO", |
|
18 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_MANOS", "dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_PIERNAS", |
|
19 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_PIES", "dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_PRENDA_REF", |
|
20 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_ALCOHOL", "dbtest"."public"."ARENA2_CONDUCTORES"."PRUEBA_ALCOHOLEMIA", |
|
21 |
"dbtest"."public"."ARENA2_CONDUCTORES"."TASA_ALCOHOLEMIA1", "dbtest"."public"."ARENA2_CONDUCTORES"."TASA_ALCOHOLEMIA2", |
|
22 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRUEBA_ALC_SANGRE", "dbtest"."public"."ARENA2_CONDUCTORES"."SIGNOS_INFLU_ALCOHOL", |
|
23 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_DROGAS", "dbtest"."public"."ARENA2_CONDUCTORES"."PRUEBA_DROGAS", |
|
24 |
"dbtest"."public"."ARENA2_CONDUCTORES"."AMP", "dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_AMP", |
|
25 |
"dbtest"."public"."ARENA2_CONDUCTORES"."BDZ", "dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_BDZ", |
|
26 |
"dbtest"."public"."ARENA2_CONDUCTORES"."COC", "dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_COC", "dbtest"."public"."ARENA2_CONDUCTORES"."THC", |
|
27 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_THC", "dbtest"."public"."ARENA2_CONDUCTORES"."METH", |
|
28 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_METH", "dbtest"."public"."ARENA2_CONDUCTORES"."OPI", "dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_OPI", |
|
29 |
"dbtest"."public"."ARENA2_CONDUCTORES"."OTRAS", "dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_OTRAS", |
|
30 |
"dbtest"."public"."ARENA2_CONDUCTORES"."SIGNOS_INFLU_DROGAS", "dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_PRES_INFRAC_COND", |
|
31 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_COND", "dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_SIN_LUCES", |
|
32 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_SIN_TRIANGULO", "dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_PRES_INFRAC_VEL", |
|
33 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_VEL_COND", "dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_OTRA_INFRAC", |
|
34 |
"dbtest"."public"."ARENA2_CONDUCTORES"."OTRA_INFRAC_COND", "dbtest"."public"."ARENA2_CONDUCTORES"."EXTRA", |
|
35 |
"dbtest"."public"."ARENA2_ACCIDENTES"."KM" AS "AccKm0", |
|
36 |
("dbtest"."public"."ARENA2_ACCIDENTES"."KM" * 100) AS "AccKm1", |
|
37 |
("dbtest"."public"."ARENA2_ACCIDENTES"."KM" * 222) AS "AccKm2", |
|
38 |
"dbtest"."public"."ARENA2_ACCIDENTES"."KM" |
|
8 |
-- begin testMultipleExpansionOfCalculatedField |
|
9 |
SELECT "dbtest"."public"."ARENA2_CONDUCTORES"."LID_CONDUCTOR", |
|
10 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ID_ACCIDENTE", |
|
11 |
"dbtest"."public"."ARENA2_CONDUCTORES"."LID_VEHICULO", |
|
12 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ID_VEHICULO", |
|
13 |
"dbtest"."public"."ARENA2_CONDUCTORES"."POSIBLE_RESPONSABLE", |
|
14 |
"dbtest"."public"."ARENA2_CONDUCTORES"."FECHA_NACIMIENTO", |
|
15 |
"dbtest"."public"."ARENA2_CONDUCTORES"."SEXO", |
|
16 |
"dbtest"."public"."ARENA2_CONDUCTORES"."NACIONALIDAD", |
|
17 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PAIS_RESIDENCIA", |
|
18 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PROVINCIA_RESIDENCIA", |
|
19 |
"dbtest"."public"."ARENA2_CONDUCTORES"."MUNICIPIO_RESIDENCIA", |
|
20 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ASISTENCIA_SANITARIA", |
|
21 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_FACT_ATENCION", |
|
22 |
"dbtest"."public"."ARENA2_CONDUCTORES"."FACTORES_ATENCION", |
|
23 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_PRES_ERROR", |
|
24 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRESUNTOS_ERRORES", |
|
25 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CARACT_PERMISO", |
|
26 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CLASE_PERMISO", |
|
27 |
"dbtest"."public"."ARENA2_CONDUCTORES"."FECHA_PERMISO", |
|
28 |
"dbtest"."public"."ARENA2_CONDUCTORES"."MOTIVO_DESPLAZAMIENTO", |
|
29 |
"dbtest"."public"."ARENA2_CONDUCTORES"."DESPLAZAMIENTO_PREVISTO", |
|
30 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_CINTURON", |
|
31 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_CASCO", |
|
32 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_BRAZOS", |
|
33 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_ESPALDA", |
|
34 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_TORSO", |
|
35 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_MANOS", |
|
36 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_PIERNAS", |
|
37 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_PIES", |
|
38 |
"dbtest"."public"."ARENA2_CONDUCTORES"."ACC_SEG_PRENDA_REF", |
|
39 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_ALCOHOL", |
|
40 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRUEBA_ALCOHOLEMIA", |
|
41 |
"dbtest"."public"."ARENA2_CONDUCTORES"."TASA_ALCOHOLEMIA1", |
|
42 |
"dbtest"."public"."ARENA2_CONDUCTORES"."TASA_ALCOHOLEMIA2", |
|
43 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRUEBA_ALC_SANGRE", |
|
44 |
"dbtest"."public"."ARENA2_CONDUCTORES"."SIGNOS_INFLU_ALCOHOL", |
|
45 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_DROGAS", |
|
46 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRUEBA_DROGAS", |
|
47 |
"dbtest"."public"."ARENA2_CONDUCTORES"."AMP", |
|
48 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_AMP", |
|
49 |
"dbtest"."public"."ARENA2_CONDUCTORES"."BDZ", |
|
50 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_BDZ", |
|
51 |
"dbtest"."public"."ARENA2_CONDUCTORES"."COC", |
|
52 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_COC", |
|
53 |
"dbtest"."public"."ARENA2_CONDUCTORES"."THC", |
|
54 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_THC", |
|
55 |
"dbtest"."public"."ARENA2_CONDUCTORES"."METH", |
|
56 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_METH", |
|
57 |
"dbtest"."public"."ARENA2_CONDUCTORES"."OPI", |
|
58 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_OPI", |
|
59 |
"dbtest"."public"."ARENA2_CONDUCTORES"."OTRAS", |
|
60 |
"dbtest"."public"."ARENA2_CONDUCTORES"."CONFIRMADO_OTRAS", |
|
61 |
"dbtest"."public"."ARENA2_CONDUCTORES"."SIGNOS_INFLU_DROGAS", |
|
62 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_PRES_INFRAC_COND", |
|
63 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_COND", |
|
64 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_SIN_LUCES", |
|
65 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_SIN_TRIANGULO", |
|
66 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_PRES_INFRAC_VEL", |
|
67 |
"dbtest"."public"."ARENA2_CONDUCTORES"."PRES_INFRAC_VEL_COND", |
|
68 |
"dbtest"."public"."ARENA2_CONDUCTORES"."INFLU_OTRA_INFRAC", |
|
69 |
"dbtest"."public"."ARENA2_CONDUCTORES"."OTRA_INFRAC_COND", |
|
70 |
"dbtest"."public"."ARENA2_CONDUCTORES"."EXTRA", |
|
71 |
"dbtest"."public"."ARENA2_ACCIDENTES"."KM" AS "AccKm0", |
|
72 |
("dbtest"."public"."ARENA2_ACCIDENTES"."KM" * 100) AS "AccKm1", |
|
73 |
("dbtest"."public"."ARENA2_ACCIDENTES"."KM" * 222) AS "AccKm2" |
|
39 | 74 |
FROM "dbtest"."public"."ARENA2_CONDUCTORES" |
40 |
LEFT JOIN "dbtest"."public"."ARENA2_ACCIDENTES" ON ( ("dbtest"."public"."ARENA2_CONDUCTORES"."ID_ACCIDENTE") = ("dbtest"."public"."ARENA2_ACCIDENTES"."ID_ACCIDENTE") ) |
|
41 |
ORDER BY "LID_CONDUCTOR" ASC LIMIT 15; |
|
75 |
LEFT JOIN "dbtest"."public"."ARENA2_ACCIDENTES" ON ( ("dbtest"."public"."ARENA2_CONDUCTORES"."ID_ACCIDENTE") = ("dbtest"."public"."ARENA2_ACCIDENTES"."ID_ACCIDENTE") ) |
|
76 |
ORDER BY "dbtest"."public"."ARENA2_CONDUCTORES"."LID_CONDUCTOR" ASC LIMIT 15 |
|
77 |
-- end testMultipleExpansionOfCalculatedField |
|
42 | 78 |
|
43 |
-- Count |
|
44 |
SELECT COUNT(*) FROM "dbtest"."public"."ARENA2_CONDUCTORES"; |
|
79 |
-- begin testMultipleExpansionOfCalculatedField_count |
|
80 |
SELECT COUNT(*) FROM "dbtest"."public"."ARENA2_CONDUCTORES" |
|
81 |
-- end testMultipleExpansionOfCalculatedField_count |
Also available in: Unified diff