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
How to add a loading bar
whats wrong her- java program for circuit calculation
html code inside jlabel prevents display of text
Windows Media Player and Apple Quicktime
DATABASE ROW UPDATE
Access inside interface resources from DMZ - ASDM 5505
Is there any way to max character length of record source property on a form?
how to know if this software developed under visual studio .net environment, or vb6 environment,
Convert float to date
Why Read-only powerpoint 2007 file is editable in Powerpoint 2003