Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplify SQL select
Message
 
To
27/05/1998 16:46:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00102530
Message ID:
00102803
Views:
35
>Can any one recomend changes to simplify this SQL select?
>
>
>select lim_val.code, lim_txt.lim_num, lim_txt.lim_text, ;
>	lim_txt.lim_suffix ;
>  from lim_val, lim_txt ;
>  where lim_txt.lim_num = lim_val.lim_num ;
>	and lim_txt.lang_code = m.lang_activ ;
>union ;
>select lim_val.code, lim_def.lim_num, lim_def.lim_text, ;
>	lim_def.lim_suffix ;
>  from lim_val, lim_def ;
>  where lim_def.lim_num = lim_val.lim_num ;
>	and lim_def.lang_code = m.lang_activ ;
>	and lim_val.code + str(lim_val.lim_num) not in ;
>	(select lim_txt.code + str(lim_txt.lim_num) ;
>	  from lim_val, lim_txt ;
>	  where lim_txt.code = lim_val.code ;
>		and lim_txt.lim_num = lim_val.lim_num ;
>		and lim_txt.lang_code = m.lang_activ)
>
>
Eeek. Could you explain, in plain english, the business nature of the select? That would help me.
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform