The first is an OUTER join. This shows rows from table A even if there is no matching row in table B. Suppose tables contain the following data:
select a.name, a.sector_id from tb_industry a;
name sector_id
---- ---------
A 1
B 2
C 3
Select b.id, b.name from tb_sector b;
id name
-- ----
1 X
2 Y
(Note that there is no tb_sector row with id 3.)
The outer join still returns all rows from table A, with NULLs for values that should have come from table B:
select a.name, a.sector_id, b.name as sector_name
from tb_industry a left outer join tb_sector b on a.sector_id = b.id;
name sector_id sector_name
---- --------- -----------
A 1 X
B 2 Y
C 3
The other query (an INNER join) misses the unmatched row:
select a.name, a.sector_id, b.name as sector_name
from tb_industry , tb_sector b where a.sector_id = b.id;
name sector_id sector_name
---- --------- -----------
A 1 X
B 2 Y
The following query is also an inner join, using the newer ANSI join syntax:
select a.name, a.sector_id, b.name as sector_name
from tb_industry a
join tb_sector b on a.sector_id = b.id;
name sector_id sector_name
---- --------- -----------
A 1 X
B 2 Y
Without the OUTER keyword, the join is an inner join.