Click here to Skip to main content
15,892,059 members

Comments by Sumit Jawale (Top 29 by date)

Sumit Jawale 4-Feb-15 7:00am View    
Hi, What exactly you want to do ? What i understood from your comment is if hod approves leave, then you need to update the remaining record count.Correct ??

If you dont want to use trigger then you can write two update statments to update leave status and to update remaining leaves.
Sumit Jawale 4-Feb-15 2:15am View    
Deleted
Select tbl1.col1,tbl1.col2, tbl2.col1,tbl2.col2 from tbl1 inner join tbl2 on tbl1.id = tbl2.id
Sumit Jawale 4-Feb-15 0:32am View    
Here you can take @LeaveStatus as varchar and you cna check if (@LeaveStatus == 'Approve')
Sumit Jawale 2-Feb-15 3:46am View    
Hi, What is the issue in this?
Query is looking fine and it will fetch the record using userID ..
Sumit Jawale 21-Jan-15 4:06am View    
your PERFORMANCE is not depend on NOLOCK.. Please try to optimise your query.. There are so many ways to optimise it..