General information
Forum:
Microsoft SQL Server
Title:
How can maximum value count from varchar field
Environment versions
SQL Server:
SQL Server 2000
hi friends
Bill_no- fird name
12344AAAA
aaa12340
111111
select max(cast(bill_no as int)) from table1
select cast(max(bill_no) as int) from table1
Error Occured
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '123aaaa' to a column of data type int.
where i wrong
pls help me
how can i calc maximum bill_no
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only