Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to select out latest generations of routes
Message
From
19/12/2005 12:27:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01079188
Message ID:
01079231
Views:
26
>>Single SQL and no intermediate results?:( This might work but slow:
>>
>>select distinct ;
>> r1.zone, r1.rte_no, r1.Gen, r1.direction, r1.time, r1.SeqNo;
>>  from RZStop r1, RzStop r2 ;
>> where r1.zone = r2.zone and r1.rte_no = r2.rte_no and r1.Gen > r2.Gen ;
>> order by 1,2,6
Cetin
>
>Can't do that either I'm afraid - aliasing the source table and using it twice in the same SQL.
>This is a real bummer of a language!!

OK final try:)
Create a view in VFP and mapbasic selects from that view?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform