Hi
In below Sql i want in inner select statement if record is not found then Space should be returned.
select
[LogID]
,[ModuleCode]
,[ModuleMasterCode]
,[EntryCode]
,[EmpCID]
,[EmpName]
,[StepCode]
,[EntryDate]
,isnull((select top 1 EntryDate from [PRQS].[dbo].[BackLog] where and StepCode = T0.StepCode and EntryCode = T0.EntryCode),'')
FROM [LiveData].[dbo].[EntryLog] T0
where T0.EntryCode = '100'
Thanks
Jignesh KumarPosted Nov 11, 2022, 8:32 AM
Hi Ramco,
You can use below query,
Pankajkumar PatelPosted Nov 10, 2022, 1:24 PM
Hi Ramco Ramco,
"If date is null then '' instead of 1900-01-01" can be achieved with CASE WHEN as like following:
Hope, this will help you!
Vishal JoshiPosted Nov 10, 2022, 12:45 PM
Hello
Please check the below code.