What are joins, explain all types of joins?



What are joins, explain all types of joins?..

Answer / Shivam Shukla

Joins in SQL allow the combination of rows from two or more tables based on a related column between them. There are several types of joins:
1. Inner Join: Returns only the matching rows from both tables involved in the join.
2. Left (Outer) Join: Returns all the rows from the left table and the matching rows from the right table, if any. If there is no match, null values are used for columns from the right table.
3. Right (Outer) Join: Returns all the rows from the right table and the matching rows from the left table, if any. If there is no match, null values are used for columns from the left table.
4. Full (Outer) Join: Returns all the rows when there is a match in either the left or right table. If there is no match, null values are used for columns from the non-matching table.
5. Cross Join (Cartesian Product): Returns the combination of every row from both tables involved in the join.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What are the restrictions on external table columns?

1 Answers  


What is columnar storage what is the advantage?

1 Answers  


How a tablespace is related to data files?

1 Answers  


For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?

1 Answers   Oracle,


how to use sequence and what use of sequence cache

1 Answers  


What is the order of defining local variables and sub procedures/functions?

1 Answers  


How to define default values for formal parameters?

1 Answers  


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

1 Answers  


If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?

8 Answers   IBM,


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

1 Answers  


What are the extensions used by oracle reports?

1 Answers  


How to connect to the server with user account: sys?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)