If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > What is this symbol : (+) ??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-02, 19:35
Ishan Ishan is offline
Registered User
 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 6
Question What is this symbol : (+) ??

I am trying to understand this query but it can't find what the (+) is meaning.

Can you help me ?

select *
from demande_credit_asap d,
pret_debourse_osv p
where d.produitlog = :bien_code
and d.nomarchandlog = :march_no
and (trunc(d.dateouverturelog) >= to_date('1/1/2001','MM/DD/YYYY') and
trunc(d.dateouverturelog) <= to_date('5/7/2002','MM/DD/YYYY'))
and d.noasaplog = p.noasapdebourse (+)
Reply With Quote
  #2 (permalink)  
Old 06-04-02, 00:33
Sarkarsan Sarkarsan is offline
Registered User
 
Join Date: May 2002
Location: KOLKATA, INDIA
Posts: 7
select *
from demande_credit_asap d,
pret_debourse_osv p
where d.produitlog = :bien_code
and d.nomarchandlog = :march_no
and (trunc(d.dateouverturelog) >= to_date('1/1/2001','MM/DD/YYYY') and
trunc(d.dateouverturelog) <= to_date('5/7/2002','MM/DD/YYYY'))
and d.noasaplog = p.noasapdebourse (+)


This means that even if there is no data in pret_debourse_osv corresponding to the record in demande_credit_asap, it should display the data from demande_credit_asap table.
This is called outer join.
So these query will display all the records from the two tables meeting all the criteria and also display all records from d which are qualifying the criteria specified and not matching with the records in table p.

Santosh Sarkar
Reply With Quote
  #3 (permalink)  
Old 06-04-02, 09:40
Ishan Ishan is offline
Registered User
 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 6
Thank you very much
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On