1
select c.c_name, a.n_name
from retail.client c left join retail.area a
on c.c_nationkey = a.n_nationkey
and a.n_name is null;
2.
select c.c_name, a.n_name
from retail.client c left join retail.area a
on c.c_nationkey = a.n_nationkey
where a.n_name is null;
The following queries returns same number of rows.
when I do
select c.c_name, a.n_name
from retail.client c left join retail.area a
on c.c_nationkey = a.n_nationkey
and a.n_name is null
MiNUS
select c.c_name, a.n_name
from retail.client c left join retail.area a
on c.c_nationkey = a.n_nationkey
where a.n_name is null
it returns 0 rows. so I think there must be some difference in the way they get executed.can any one explain. And I would be thankful If some one refers me execution order of t-sql statement. I am a beginner in Teradata sql.
Is there any article on the internet --explaining order of execution of sql statements in different types of databases. Thank you very much.