Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order by in union
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
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:
01649483
Views:
38
>>I had the order by just before the into cursor line, I took it out as it was causing the issue. I do normally include table.field name but as I was testing I didn't bother, I was actually building up the select code from a simple 2 fields to try to get to the bottom of it.
>>
>>order by BTR_link
>>into cursor temp2
>>
>>~M
>
>I think it should have worked (but I need to know the type of that column). In any case, the workaround I suggested with derived table should always work.
It is a numeric column, N(10,0). I went with the 2 select option, the union to get the data and a second to order it the way I required. thanks.
~M
Go raibh maith agat

~M
Previous
Reply
Map
View

Click here to load this message in the networking platform