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
Reformat of a Dell Poweredge 1900 with a single RAID5 array on PERC5/i - loss of data on 2nd partition?
wxqwa.sys file found in system32/drivers...is this malware?
Separate SSIS server for ETL Tasks
called function not executing - why?
Need to Defrag Information store (Exchange 2003)
Can I reserve a drive letter for a USB external drive
ssh shell not working on solaris 10
Excel Formula Error: Formula repeats itself and does not display answer
Change backcolor of the tab header +windows programming vb.net 2005
Physically Moving Server to New Location