sel a.t1,b.t1 from emp a left outer join dept b ON
a.id=b.id where b.deptno=10;
sel a.t1,b.t1 from emp a left outer join dept b ON
a.id=b.id and b.deptno=10;
what is the difference on the above 2 queries?

Answer Posted / aarsh dave

The first query will only show the records that are matching
on id and deptno = 10.

The second query will show all the records from table A with
B.t1 as NULL wherever deptno <> 10.

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by tpt in teradata?

593


Can we collect statistics on table level?

610


In general, how do you optimze any sql in teradata?

555


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

684


what is object level locking ? where do appear this type of locking ?

3119






Mention a few of the ETL tools that come under Teradata.

624


What do you mean by caching in teradata?

612


Define views in teradata with syntax.

646


List out all forms of LOCKS that are available in Teradata.

560


If a Node is busy what are the steps you can take to avoid ?

1876


How teradata makes sure that there are no duplicate rows being inserted when its a set table?

567


Explain the parallel data extension in teradata?

662


What is the syntax for case when statement?

594


What is the purpose of joins in teradata?

548


What are the different functions performed in development phase?

578