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
Jyoti Jodha
NA
1.7k
408.5k
Error converting data type nvarchar to numeric. in Sql Serve
May 31 2017 1:24 AM
Error show
Msg 8114, Level 16, State 5, Line 1
Error converting data type nvarchar to numeric.
query
--------
Select ROW_NUMBER() over(ORDER BY DATENAME(MONTH, convert(datetime,Date,105))+'-'+DATENAME(year, convert(datetime,Date,105)) ASC) as ID,
DATENAME(MONTH, convert(datetime,Date,105))+'-'+DATENAME(year, convert(datetime,Date,105)) as Month,
sum(cast(Amount as numeric(18,2))) as Amount,
sum(cast(Addcost as numeric(18,2))) as Addcost ,
sum(cast(Discount as numeric(18,2))) as Discount ,
sum(cast(Tax_Amount as numeric(18,2))) as Tax_Amount,
sum(cast(Total_Amount as numeric(18,2))) as Total_Amount from MainBillForm where Sno=0 group by DATENAME(MONTH, convert(datetime,Date,105))+'-'+DATENAME(year, convert(datetime,Date,105))
ORDER BY DATENAME(MONTH, convert(datetime,Date,105))+'-'+DATENAME(year, convert(datetime,Date,105))
Reply
Answers (
6
)
How to insert Blank page in current document.
combo box query