TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mukesh
NA
228
43.1k
How to add in other whenever came from Public holiday date
Jan 8 2016 1:35 AM
newholiday is my table name where all the Public Holiday in my table so i want to know
when ever employee came office of holiday date the and do intime in holiday date then
1 day add in other
employee details is my table where is in this table intime
i have a code give below -
IF(@qtype = 1)
BEGIN
SELECT [EmployeeId]
,[CL] as CasualLeave
,[EL] as EarnedLeave
,[ML] as MedicalLeave
,isnull( (select COUNT (e.in_time) as c from Employee_detail e join
newholiday N on convert( date ,day)=convert(date ,e.in_time )
--where e.name=@EmpID),0) as Other
,[OthersLeave] as Other
,[TotalLeave]
,[totalGranted] as totalgranted
FROM tran_emp_office_details
WHERE [EmployeeId] = @EmpID
END
Reply
Answers (
0
)
SQL Query Joins
Conversion failed converting the varchar value ',' to int