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
Manish Solanki
NA
77
25.5k
compare two date from two table in sqlserver
Oct 27 2015 3:31 AM
Hello Everyone
I have two table..
1. Holiday
-HolidayId
-Description
-HolidayDate
- Status
2. EmployeeLeaves
- LeaveId
-EmployeeId
-RequestedDate
-LeaveReason
-LeaveFrom
-LeaveTo
-LeaveStatus
now when employee apply for the leave that time the HolidayDate will be compare with leaveFrom and LeaveTo date.
suppose sir, 11/11/2015 is holiday this is allready in Holiday table. now when employee apply for the same date for leave that time it will alert message is printed "you can not apply for this day this is already holiday".I want this kind of output.
can please help for this for procedure and apply in aspx page.
Reply
Answers (
3
)
How to get last records of employees in sql?
How to design a Calender table in Sql Server 2008 R2