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 is the particular designated level at which a LOCK is liable to be applied in Teradata?

700


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

646


Steps to create a data model?

757


Different phases of multiload?

658


What are the different methods ot loading a dimension table? A fact table etc?

658






Highlight a few of the advantages that ETL tools have over Teradata.

723


What do you mean by fastexport in teradata?

643


What are the functions of a teradata dba?

681


Discuss the advantages of using partitioned primary index in a query?

616


Syntax for case when statement?

694


How do you define Teradata?

693


Explain the term 'columns' related to relational database management system?

645


What is spool space?

706


What is difference between user and database in teradata?

722


What do you mean by parsing?

714