Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View SQL Parsing Problem
Message
From
28/10/1998 09:37:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
View SQL Parsing Problem
Miscellaneous
Thread ID:
00151526
Message ID:
00151526
Views:
45
I had created a view using the view designer but couldn't make
it to form the syntax of the SQL statement the way I wanted it to be.

I wanted like this..........

CREATE SQL VIEW request A AS;
SELECT * FROM A;
WHERE Request.USER_CLOCK LIKE ?cuser_clock;
AND Request.AREA LIKE ?carea;
AND (Request.MNRCAT LIKE ?cmnrcat OR Request.MNRCAT IS NULL);
AND (Request.STATUS LIKE ?cstatus OR Request.STATUS IS NULL);

Instead it created like this.......

SELECT * from A
WHERE Request.USER_CLOCK LIKE ?cuser_clock;
AND Request.AREA LIKE ?carea;
AND Request.MNRCAT LIKE ?cmnrcat;
OR (Request.MNRCAT IS NULL;
AND Request.STATUS LIKE ?cstatus);
OR (Request.STATUS IS NULL;

** Notice the position of ( and )

I know that to get around this problem, you have to do it programmatically in a .prg, but I dont know how. Can anybody help me with it??

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform