Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling sort order of child records
Message
From
07/03/2005 10:47:40
 
 
To
07/03/2005 10:44:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
00993287
Message ID:
00993289
Views:
16
Hi, Don
in your select statement, try
 ...
order by customerid, orderdate ;
...
HTH
Beth
>Is there a way to control the sort order of the child records in a relationship or a SQL SELECT statement? This seems rather basic but not very easy unless I'm missing something. Say you have a CUSTOMERS table and an ORDERS table. You do a SQL SELECT and you want the orders to appear by date. The orders table must be indexed on customer ID for the relation to work which seems to prevent the date sort. Any attempt to order by date breaks the relation.
>
>There must be a way to do this.
>Help please.
Previous
Reply
Map
View

Click here to load this message in the networking platform