Wednesday, 7 January 2015

select [ernetNew].dbo.[tblInstituteDetailAndMain].[DomainName]
CLIENTDOMAINNAME
,
[dbo].[CLIENTREGISTRATION].[DOMAINSTATUS]
,[ernetNew].dbo.[tblInstituteDetailAndMain].[DomainStatus]
from [ernetNew].dbo.[tblInstituteDetailAndMain]
left join [dbo].[CLIENTREGISTRATION] on ltrim(rtrim([dbo].[CLIENTREGISTRATION].CLIENTDOMAINNAME))=rtrim(ltrim([ernetNew].dbo.[tblInstituteDetailAndMain].[DomainName]))

where [dbo].[CLIENTREGISTRATION].[DOMAINSTATUS]='DE'

No comments:

Post a Comment