У меня такой запрос
select *
from Users u left join(
select ContactInformationId,
Address,
City,
StateProvince,
CountryId,
ZipCode,
PrimaryContactNumber,
Fax,
MobileNumber
from ContactInformation
) c on u.ContactInformationId = c.ContactInformationId
left join (
select ISNULL(MerchantId, @MerchantId) as MerchantId,
ISNULL(MerchantName, @MerchantName) as MerchantName,
ISNULL(MerchantEmail, @MerchantEmail) as MerchantEmail,
ISNULL(ContactInformationId, @ContactInformationId) as ContactInformationId
from Merchants
) m on c.ContactInformationId = m.ContactInformationId
left join (
select IsNull(MidId, 0) as MidId,
IsNull(MidName, '') as MidName,
IsNull(MerchantId, 0) as MerchantId,
IsNull(Param_2, '') as Param_2,
IsNull(Param_6, '') as Param_6
from Mids
) MID on m.MerchantId = MID.MerchantId
where u.FirstName = '' and u.LastName = '' or u.MiddleName = ''
и такой результат. Я хочу спросить, есть ли способ сделать значения по умолчанию для этих столбцов NULL?