Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplify SQL select
Message
From
27/05/1998 16:46:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Simplify SQL select
Miscellaneous
Thread ID:
00102530
Message ID:
00102530
Views:
54
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)
Next
Reply
Map
View

Click here to load this message in the networking platform