Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I make SQL Select ignore Left Join
Message
From
01/07/2005 17:18:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01028358
Message ID:
01028378
Views:
11
This message has been marked as the solution to the initial question of the thread.
>My title for this message is not very clear, I am sorry, I just could not define it in one line.
>
>In my SQL I have the following left join:
>
>
>left join &cParentAlias. on cPrefix + &cParenField. = &cChildField.
>
>
>But sometimes I have no need for this left join, that is, there is no cParentAlias and the rest. How can I make this Left Join to be ignored by SQL Select?
>
>Thank you.
if Something
text to m.lcLeftJoin textmerge noshow
 left join <<cParentAlias>> on <<cPrefix>><<cParenField>> = <<cChildField>>
endtext
else
 lcLeftJoin = ''
endif
select ..... &lcLeftJoin
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform