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
Ankit Shukla
NA
681
117.6k
where clause is not working with group by
Jan 7 2020 3:07 AM
Hello All,
My query is:
Select Reg_year, count(*) as Total
From t_Data FR
Where fr.STATE_CD=35
and fr.Insert_DATA_Date >= '2017-01-01 15:25:16.437'
and fr.Insert_DATA_Date <= '2019-12-01 15:25:16.437'
group by Reg_year
Problem: date filter is not working.
Output comes like:
Reg_Year | Total
-------------------------------
2015 | 6
2016 | 9
2017 | 13
2018 | 11
Thanks in advance
Reply
Answers (
7
)
how to Convert Columns into Rows?
how to write this query for good performance ?