Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complicated Query
Message
From
13/05/2008 05:21:37
 
 
To
13/05/2008 03:51:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01316576
Message ID:
01316586
Views:
12
Dear Sir,

The code field is character type
You wrote
SUM(IIF((INT(t2.code/1000)) = 3201,t2.credit,0)) as amt1,;
and to change character to number I modified as
SUM(IIF(INT(VAL(t2.code/1000)) = '3201',t2.credit,0)) as amt1,;
But it still shows error "Data type mismatch"

Please help again
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform