SQL Key Points

1/1/1970

SQL Key Points

Types of Joins

Inner Join = Intersection

Left Outer Join = Inner Join + Left

Right Outer Join = Inner Join + Right

Outer Join = Inner Join + Left + Right = Union


Natural Join

Natural + Inner Join :NATURAL JOIN. Natural + Left Jon : NATURAL LEFT JOIN. Natural + Right Jon : NATURAL RIGHT JOIN. **Natural + Full Outer Join** : NATURAL FULL JOINor NATURAL FULL OUTER JOIN`.

Note:


Comments in SQL


Order of Keyword

In SQL the order of keywords matters


IS NULL

In SQL, when checking for a NULL value, you should use the IS NULL or IS NOT NULL operator, not the = operator.

customerId = NULLcustomerId IS NULL