Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Group by with order by error
Ankit Shukla
Apr 17 2017 1:23 AM
245
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Event Schedule for update or insert data every month
How to remove Duplicate rows retain latest LastDrugPickup