Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

September 02, 2013

SQL Join

Ada 4 jenis Join iaitu :-

  1. Inner Join
  2. Left Join
  3. Right Join
  4. Full Join
INNER JOIN = JOIN



LEFT JOIN = LEFT OUTER JOIN


RIGHT JOIN = RIGHT OUTER JOIN


FULL OUTER JOIN


SQL Aliases - Combine the column

SQL Syntax:

Select
     CustomerName,
     Address + ',' City + ',' + Postcode + ',' Country AS Address
From
     Customers;

Results: