Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL views and ANDs
Message
From
02/06/1998 16:48:01
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00104188
Message ID:
00104196
Views:
21
Josh,

I think I'm losing it. I had been getting some type of error like "bad command", but when I just tried it again, it worked! Sorry about that!

Mandy

>Mandy,
>
>This should work. What happens when you use the view? Do you get an error message, or just not the results you expected?
>
>>I'm creating some views with the CREATE SQL VIEW commands, including some JOINs. Is it possible to create a JOIN with an AND?
>>
>>eg. CREATE SQL VIEW lvtest AS SELECT System.acode, System.hwid, ;
>> System.vendname AS sysvend, System.model AS sysmodel, ;
>> SysSW.swname, SysSW.version AS swversion, ;
>> SysSW.descrip AS swdescrip;
>> FROM System ;
>>--> LEFT JOIN SysSW ON System.acode = SysSW.acode AND ;
>>--> System.hwid = SysSW.hwid ;
>> WHERE System.acode = ?caid ;
>> ORDER BY System.hwid
>>
>>This won't work for me, but is there something along this logic I can use??
>>
>>MTIA!
>>
>>Mandy
Previous
Reply
Map
View

Click here to load this message in the networking platform