Click here to Skip to main content
15,898,723 members

Comments by Naga Sindhura (Top 88 by date)

Naga Sindhura 29-Aug-18 3:58am View    
LEFT JOIN t_wfl_process_execution pe ON pe.tdesc_name='t_sup_supplier' AND pe.x_id=CAST(s.sup_id AS varchar(128))

what is the datatype of pe.x_id column int/varchar. If it is int then why you are converting and then comparing it with s.sup_id(CAST(s.sup_id AS varchar(128))).
or some where in the data, you trying to convert varchar data which contains some sort of characters and you are converting that data to int.
Naga Sindhura 8-Aug-18 1:59am View    
left outer gives poor performance when you have the bulk data. try this
SELECT TS.ID, TS.ENAME, TS.SAL - SUM(ISNULL(TA.ADVANCE,0)) 'remainin_SAL'
FROM #tempSaldetail TS
LEFT JOIN #tempAdvance TA On TA.Id = TS.id
group by TS.ID, TS.ENAME, TS.SAL
ORDER by TS.ID
Naga Sindhura 3-Aug-18 4:57am View    
output nagesh is not there in the Emp_table then how you are expecting nagesh in the result(output). Could you please update the problem statement correctly.
Naga Sindhura 1-Aug-18 5:29am View    
too many when statements, its better to go with table variable syntax. What do you think?
Naga Sindhura 1-Aug-18 5:27am View    
where you actually referring this column, is it in table select part?/ are you trying to store it in a variable? can you post the complete solution if possible. And, also the error details.
WHEN 'vorne rechts' THEN '2 -- what does it mean exactly. 'vorne rechts' refers to column name and 2 refers to column position?