Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unknown error in SQL view
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Unknown error in SQL view
Miscellaneous
Thread ID:
00511382
Message ID:
00511382
Views:
43
Hi all,
I get an unknown error in creating sql view.
Below is a sql statement issue by me:

CREATE SQL VIEW report1 REMOTE CONNECTION connect1 AS SELECT * ;
FROM vendor WHERE vcode>='H' and (vtype='T' or region='CA') ;
ORDER BY vcode, vname

And below is the sql statement created itself:
(can be previewed when modify the sql view)

SELECT * FROM vendor WHERE vcode>='H' and vtype='T' or (region='CA') ;
ORDER BY vcode, vname

The difference is the bracket : (vtype='T' or region='CA') do not
correct, which generated as : (region='CA')
This will cause a big difference in results generated.
Can anyone explain this and how to correct it ?

Thanks,
Samuel
Next
Reply
Map
View

Click here to load this message in the networking platform