Please explain oracle left join with an example?



Please explain oracle left join with an example?..

Answer / Vikas Gautam

A LEFT JOIN in Oracle is a type of join that returns all rows from the left table and matching rows from the right table. If there are no matches, NULL values are used for the right-table columns.nnHere's an example:nn`SELECT l.customer_id, l.customer_name, r.order_id FROM customers AS l LEFT JOIN orders AS r ON l.customer_id = r.customer_id WHERE r.order_id IS NULL;`nThis query returns all customers who have not placed any orders.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

1 Answers  


Explain how you would restore a database using RMAN to Point in Time?

1 Answers  


various types of joins

9 Answers  


how to find out largest value in a table

2 Answers  


In Oracle 10g, "g" Stands for what?

5 Answers   Mphasis,


State and explain the different types of data models?

1 Answers  


How to start your 10g xe server from command line?

1 Answers  


What is null value in oracle?

1 Answers  


1. Display the post code and the purchase order number for each purchase order. Sort the output set by postcode.

1 Answers   Wipro,


What is the difference between 10g OEM and 11g OEM?

1 Answers   MCN Solutions,


What is Database Trigger ?

1 Answers  


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

8 Answers   IBM,


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)