Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I read the guide of Qlikview but I do not wnderstand the exactly difference between
simply hoi, Inner join, left hoin, rght join. Someone could to explain it by some examples?
Thank you
Best Regards.
--
Slash [:)]
The Wikipedia page on SQL Joins has some good examples: http://en.wikipedia.org/wiki/Join_(SQL)
I don't tend to trust just "Join", because different languages may interpret it differently. I believe that QlikView is doing an outer join by default. I always specify which type of join I want.
Hopefully I got those right. As for examples, I'm not sure that I could improve on the examples in the help text. Just search for join, then click through inner, outer, left and right. All the examples use the same source data, so you can see exactly how they behave.
yes, I understand what you wrote I tryed to build some examples by QlikView but I ecery Join (Inner, left an right ) seams the same. ..
A:
load * Inline [
cognome, nome, id
afr, aldo, 10
bafr, giovanni, 20
cafr, giacomo, 30
];
B:
Inner join (A) Load * Inline [
id, reparto
10, finanza
20, it
30, customer service
];
if I change the keyword Inner with left nothing change...
the table always joins.
Slash
Both of your tables have the exact same IDs on them. There is no difference between any of the joins in that case.
Add an ID 40 to table A, and an ID 50 to table B, and you'll see the differences. Inner will only have IDs 10, 20 and 30. Outer will have 10, 20, 30, 40 and 50. Left will have 10, 20, 30 and 40. Right will have 10, 20, 30 and 50.
Hi Slash,
Please find the attachment.
Hope it helps you lot.
Hi Srividhyas,
You have mentioned self-join in the document but not given its QlikView equivalent syntax.
Can you please give it?
Thanks
Samir