Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
8
Answers
SQL just check the date with todays Date
basit khan
9y
605
1
Reply
Dear,
I have three columns LeaveFrom , LeaveUpto and EmployeeNumber. How i will check with the today date weather the today employees on leave or not.
How to do this in SQL please help me.
Select * from Trn_EmployeeLeave Where LeaveFrom between Today.Date and Today.Date and LeaveUpto between Today.Date and Today.Date and EmployeeNumber=1 But His leave start from 01-Jun-2015 to 31-Aug-2015 how to check this
Thanks
Basit
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
Microsoft SQL Server, Error:53
how to write a query select top 2 record salary in employee