Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hola a todos, tengo el siguiente problema a resolver. Tengo 2 tablas:
TABLA A
CampoID | Formapago | Importe |
10 | 1 | 100 |
10 | 6 | 120 |
12 | 2 | 50 |
12 | 5 | 40 |
TABLA B
CampoID | Formapago | Importe |
10 | 1 | 220 |
11 | 1 | 150 |
12 | 2 | 90 |
Necesitaría crear otra tabla en la que figuren los registros de la tabla A y aquellos registros de la tabla B en el que el campo ID no figure en la tabla A.
Quedando el resultado de la siguiente manera:
CampoID | Formapago | Importe |
10 | 1 | 100 |
10 | 6 | 120 |
11 | 1 | 150 |
12 | 2 | 50 |
12 | 5 | 40 |
Muchas gracias. Saludos.
I used an automatic translator 🙂
So May be this solution :
TableA:
LOAD * INLINE [
CampoID, Formapago, Importe
10, 1, 100
10, 6, 120
12, 2, 50
12, 5, 40
];
concatenate(TableA)
LOAD * INLINE [
CampoID, Formapago , Importe
10, 1, 220
11, 1, 150
12, 2, 90
]where not Exists(CampoID);
output :
attached qlikview file