what is outer join?
what is selef join?
what is difference between them?
what is cartecion join?



what is outer join? what is selef join? what is difference between them? what is cartecion join?..

Answer / nandini sett

Outer join displays result set containing all the rows from
one table and the matching rows from another table. There
are three types of Outer Join -- Left Outer Join (All rows
of the left table and matchng rows of the right), Right
Outer Join (All rows of the right table and matching rows
of the left table) and Full Outer Join (All rows of both
tables).
In self join, table is joined with itself. One row
correlates with other rows in the same table. Hence a table
name with two alias names is used.
Difference between outer join and self join is that outer
join uses atleast two or more tables where one column is
common while self join uses only one table and two fields
of the same table.
Cartesian Product or cross join is between two tables where
each row from one table with each row of the other table.
If table A has 5 rows and table B has 10 rows then after
cross join the total number of rows would be 50.

Is This Answer Correct ?    43 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

i want run a sql query query? which phases are run in a back ground? pls tell me the answer

1 Answers  


How do I truncate a sql log file?

0 Answers  


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

0 Answers  


Difference between inline query and stored procedure?

4 Answers   Bharat, Microsoft,


Which command is used to delete a trigger?

0 Answers  






Why do we need view in sql?

0 Answers  


Store procedure will return a value?

4 Answers   eMids,


Why use subqueries instead of joins?

0 Answers  


What is the difference between rollback and rollback to statements?

0 Answers  


Should I use mbr or gpt?

0 Answers  


How would you go about increasing the buffer cache hit ratio? 0. Explain the difference between a hot backup and a cold backup and the benefits associated with each 1. You have just had to restore from backup and do not have any control files. How would you go about bringing up this database? 2. How do you switch from an init.ora file to a spfile? 3. Explain the difference between a data block, an extent and a segment. 4. Give two examples of how you might determine the structure of the table DEPT. 5. Where would you look for errors from the database engine? 6. Compare and contrast TRUNCATE and DELETE for a table. 7. Give the reasoning behind using an index. 8. Give the two types of tables involved in producing a star schema and the type of data they hold. 9. What type of index should you use on a fact table? 10. Give two examples of referential integrity constraints. 11. A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables? 12. Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each. 13. What command would you use to create a backup control file? 14. Give the stages of instance startup to a usable state where normal users may access it. 15. What column differentiates the V$ views to the GV$ views and how? 16. How would you go about generating an EXPLAIN plan?

2 Answers  


What are the events on which a database trigger can be based?

0 Answers  


Categories