troubleshooting Question

Left join with condition is failing in oracle

Avatar of srikotesh
srikotesh asked on
Oracle Database
13 Comments2 Solutions81 ViewsLast Modified:
Hi Experts,

I am trying the below query leftjoin with and condition
but still i am fetching the value of 0 for--SUPPLIER_CR_AMOUNT.

i am looking for the records which value is >0

select 
trans.deal_id,
    trans.deal_rec_id,
    trans.supplier_doc_number    
	FROM transaction trans 
LEFT JOIN  details  details ON details.DEAL_REC_ID=trans.DEAL_REC_ID 
AND details.SUPPLIER_CR_AMOUNT > 0 

Could you please suggest what is the wrong here
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros