Try...
Msg 1035, Level 15, State 10, Line 13
Incorrect syntax near 'cast', expected 'AS'.
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
I need sum of column iznos_sa_pdv type varchar 255...where condition is ok
Shahriar NikkhahPosted May 1, 2018, 9:27 PM
Goran BibicPosted May 1, 2018, 12:20 AM
Goran BibicPosted May 1, 2018, 12:16 AM
Goran BibicPosted May 1, 2018, 12:15 AM
Shahriar NikkhahPosted Apr 30, 2018, 8:18 PM
Manas TripathiPosted Apr 30, 2018, 5:09 PM