Join da tabelle
Salve ho un problema con il join tra tabella e non so se si possa fare ciò che ho in mente allora:
date due tabelle chiamiamole A e B
A (int Id, int X)
B (int Id, int val, int val2 ...) (i valori val,val2 sono solo per completezza)
Id di A è chiave esterna di B
In B per esempio ho 4 righe { (1,1,1..) (2,2,2..) (3,3,3...) (4,4,4...) }
In A ho una sola riga {(1,1)}
Allora il problema è se faccio l'inner join tra le due tabelle avrò come risultato
[Id X val val2 ...]
1 1 1 1
Io invece vorrei unire completamente le due tabelle, cioè
[Id X val val2 ...]
1 1 1 1
2 - 2 2
3 - 3 3
4 - 4 4
Cioè non selezionando il/i record comuni ad entrambe le parti, ma unendo le due tabelle lasciando vuoti i valori
Come faccio??
Grazie in anticipo
Edited 1 time(s). Last edit at 04/15/2010 02:59AM by Fabrizio Marazita.
Subject
Views
Written By
Posted
Join da tabelle
3982
April 15, 2010 02:57AM
2956
April 15, 2010 03:41AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.