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
Getting an error when running classic asp app on windows 7 with iis7
Microsoft Outlook Emails not reciving
Group Policy Creator Owners - Is there a way to add the ability to delete a policy created by someone else?
How to write my deep copy constroctur?
results based on multiple rows in a join
Change crystal reports chart type during runtime
MS Outlook 2007 delete files from server after download
Cisco WLAN Security
After upgrade to BackupExec 2010, can no longer see MS Exchange 2007 data store
phpMyAdmin problem