Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can maximum value count from varchar field
Message
From
10/10/2006 09:51:24
Arjun Bagojikop
Dynamic Super Software
Sangli, India
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
How can maximum value count from varchar field
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01160823
Message ID:
01160823
Views:
47
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
Map
View

Click here to load this message in the networking platform