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
118.1k
Group by with order by error
Apr 17 2017 1:23 AM
Hello,
My query is:
"select category ,sum(quantity) as qnty from BeautySupplyChannel
where BeautySupplyChannel.date>='2017/03/28' and BeautySupplyChannel.date<='2017/03/30' group by category order by BeautySupplyChannel.date"
But it shows error "Column "BeautySupplyChannel.Date" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause."
Please help. Thanks
Reply
Answers (
4
)
Event Schedule for update or insert data every month
How to remove Duplicate rows retain latest LastDrugPickup