mysql - SQL Server return NULL (or value) in case entry does not exist - Multiple Columns -


i have populated table 'number' pk. query searches specific number, , if not found return "null" not no value.

i have managed 1 return:

select (select risk_impact [dbo].[rfc] number = 'rfc-018345') 

however select multiple columns like:

select (select risk_impact, risk_impact, bi_testingoutcome [dbo].[rfc] number = 'rfc-018345') 

however giving me error:

"msg 116, level 16, state 1, line 1 1 expression can specified in select list when subquery not introduced exists."

can please assist?

thank in advance

try

select p.* (select 1 t ) v left join  (select * [dbo].[rfc] number = 'rfc-018345') p on 1=1 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -