Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Join on different data types
Message
 
 
To
21/02/2005 17:17:05
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00988924
Message ID:
00989045
Views:
34
This message has been marked as the solution to the initial question of the thread.
The CASE function has specific syntax you've to follow.
cast( Original_ap_invoices.VENDOR_NUMBER as int)
is correct one. It doesn't look like VFP8 View Designer can handle it, though. It seems to work fine in VFP9 View Designer. You can either:
- Create view in code (w/o View Designer)
- Use third party replacements for VFP View Designer
- Upgrade to VFP9

>I am using the modify data command of the DBC and then select add remote view.
>
>Where do I put the CAST(TableA.Vendor_number) as int
>
>I thought I would try to change it in the JOIN tab by going to the bottom of the fields and building an expression.
>
>I use cast( Original_ap_invoices.VENDOR_NUMBER) as int
>and then hit verify and it says expression OK.
>
>When I try to save the view it says incorrect syntax near expression ‘CAST’, expected ‘AS’
>
>If I use cast( Original_ap_invoices.VENDOR_NUMBER as int)
>then it tells me missing )
>
>
>I am getting CLOSE, but close only counts in horse shoes, hand grenades and atomic bombs. With the SQL syntax it is 100% or ZERO.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform