Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order by in union
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Order by in union
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01649254
Message ID:
01649254
Views:
53
Hi all,
the code below works but I need to add in an order by field1, field2 but I can't get it to work, I get an order by error. I've tried a simple order by command but no joy, also tried moving between engine behaviour 70/80/90 with no luck. Any help appreciated.
~M
sele FIELD_LIST ;
	from TBALE1 ;
		join TABLE2 ;
		join TABLE3 ;
	where something ;
		AND something else ;
	UNION ;
sele FIELD_LIST
	from TBALE1 ;
		join TABLE2 ;
		join TABLE3 ;
	where something ;
		AND something else ;
	into cursor temp2 nofilter
Go raibh maith agat

~M
Next
Reply
Map
View

Click here to load this message in the networking platform