Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Findout max character
Message
From
09/04/2008 12:25:48
 
 
To
09/04/2008 07:47:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01309251
Message ID:
01309412
Views:
7
>Dear Experts
>
>Table1 has only one field as
>
>code c(7)
>
>data in table is as follows
>
>1
>11
>1101
>1102
>1103
>12
>1201
>13
>1301
>1304
>
>How to findout max code in 2 digits starting with 1
>
>The answer is 13
>
>Please help

How about
SELECT MAX(0000000+EVALUATE(LEFT(code,2))) FROM table1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform