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
Goran Bibic
484
2.9k
196.8k
Select, Sum, convert...varchar to float?
Apr 30 2018 3:11 PM
Try...
Msg 1035, Level 15, State 10, Line 13
Incorrect syntax near 'cast', expected 'AS'.
select [iznos_sa_pdv], sum(cast(Try_convert(
float
,[iznos_sa_pdv]))) AS ukupno
from mp_kasa_lista
WHERE [datum] >= CONVERT(datetime, convert(varchar(10), GETDATE() ,120), 120)
AND datum < DATEADD(day, 1, convert(datetime, convert(varchar(10), getdate(), 120), 120))
group by iznos_sa_pdv
Some help?
I need sum of column
iznos_sa_pdv
type varchar 255...where condition is ok
Reply
Answers (
6
)
clustered index and non clustered index in sql
Function in sql