Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with ORDER BY
Message
 
 
To
30/08/1999 08:09:21
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00259092
Message ID:
00259103
Views:
22
Try Un-Nesting the joins:
SELECT Employee.employeeid, Employee.lastname, Employee.firstname, ;
   Log.employeeid, Log.firmid, Log.codeid, Log.logdate, Log.time, Log.rate, ;
   Code.codeid, Code.codenum, Code.codetype, Code.codedesc ;
 FROM timepro!employee ;
     INNER JOIN timepro!log ;
        ON Employee.employeeid = Log.employeeid ;
    INNER JOIN timepro!code ;
       ON  Log.codeid = Code.codeid ;
 ORDER BY Log.firmid, Employee.lastname, Employee.firstname, ;
  Code.codenum, Code.codetype
>Also... when you use a view on a REPORT and in the report you set up some data grouping, does that override the ORDER BY of the view?

No.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform