I am working on an SQL statement and just wanted to clarify my understanding of join syntax in MS SQL.
Say I have the SQL…
select t.year from HOUSE AS h
LEFT OUTER JOIN SUBJECT K
ON H.Name = K.Name
INNER JOIN TESTCASE AS T
ON k.year IS NOT NULL
Sorry for the confusing example but basically – why am I able to use LEFT OUTER JOIN SUBJECT K without the keyword AS whereas with an INNER JOIN, I need to use a keyword of AS for INNER JOIN TESTCASE AS T?
‘AS’ is not required in either of these cases, but I prefer it personally from the point of view of readability, as it conveys exactly what you were meaning to do.