Microsoft
Software
Hardware
Network
Question : Oracle Join null rows.
vrl.exchangeid is null and so is exc2id sometimes.Since, null is not equal to anything join is not returning any rows for that user 'radix'
I tried to use coalesce and case statement still it doesn't return anything. Am I doing anything wrong in the query?
Query:
select * from vrolelimits vrl join vuserroles vur on vur.roleid = vrl.roleid
join exchg exc2 on coalesce(vrl.exchgid, -1) = coalesce(exc2.id, -1)
where exc2.test = 0 and vur.userid = (select id from users where loginname = 'radix') and vrl.roleid !=123
Answer : Oracle Join null rows.
if you want null to be replaced with a value use the NVL function
nvl (column, value) it will replace nulls with the valie and other wise just return the data
Random Solutions
Add Package into Path and add menu Entry
query to find days over 30 since event
Linksys router / internet page not displaying
Set My Site to be Viewed in IE7 Compatibility Mode
General User Login Issue "Your account is configured to prevent you from using this computer."
In Ruby on Rails, how do I create links to other views that will display the correct results from a related table
Make best use of my HDDs with ESXi
Great Plains-Send Report via EMail as a PDF
Crstal Report 2008- What source can I export report so I can keep drill down?
Help adding minutes to time value