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
Patel Akash
NA
286
7.7k
Get datetime between start and end datetime
Sep 11 2019 12:36 AM
Start_Date
End_Date
2019-09-10 17:48:00.000
2019-09-10 17:00:00.000
2019-09-10 17:30:00.000
2019-09-11 08:00:00.000
2019-09-11 08:30:00.000
2019-09-11 12:00:00.000
2019-09-11 12:30:00.000
2019-09-11 12:15:00.000
2019-09-10 18:00:00.000
2019-09-10 17:45:00.000
2019-09-10 18:00:00.000
2019-09-11 09:30:00.000
2019-09-11 09:30:00.000
2019-09-11 13:00:00.000
2019-09-11 13:15:00.000
2019-09-11 13:15:00.000
If i pass Start_Date and End_Date in Query
for e.g Start_Date = '2019-09-11 12:00.000' and End_Date='2019-09-11 13:15.000'
Expected Result:
Start_Date
End_date
2019-09-11 12:00:00.000
2019-09-11 12:30:00.000
2019-09-11 12:15:00.000
2019-09-11 13:00:00.000
2019-09-11 13:15:00.000
2019-09-11 13:15:00.000
Reply
Answers (
2
)
Stored Procedure
Pivot with date and sum without case statements