You are on page 1of 2

Joins

Inner Join
Common entries from both tables would come

Left outer Join


All entries from left table and matching entries from right table

Right outer Join


All entries from right table and matching entries from left table

Full outer Join


All entries from both table

Hana Referential Join


Hana referential join is semantically same as inner join and should be used when
referential integrity is maintained.
Referential integrity: property of database which ensures that each foreign key value in a table
exists as a primary key in the referenced table (When foreign key relation exists)
Ex.
SELECT VBAK~VBELN, VBAK~KUNNR KNA1~KUNNR
FROM VBAK INNER JOIN KNA1
ON VBAK~KUNNR = KNA1~KUNNR------Referential integrity is maintained
Foreign key relation exits for VBAK-KUNNR with KNA1-KUNNR
Referential join is performance wise better than inner join, but only be used when you are sure
that referential integrity is maintained

Text Join
Should be used between two tables to get language dependent details. i.e. Table
and text table