Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to select out latest generations of routes
Message
De
19/12/2005 12:48:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/12/2005 12:46:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01079188
Message ID:
01079241
Vues:
16
>Sergey/Cetin
>
>The following MB SQL does manage to get the data I want, in the correct order. Problem is it still gets all gen's for those routes that have more than one. I just can't figure out how to get rid of the "older" gens.
>
>
>Select Rte_No, MAX( ASC( Rte_Let)) "maxGen", Directn, Stop, SeqNo, Time, RunOrder
>  from RZStop
>  where Zone = 1
>  into csrZonesServices NoSelect
>  group by rte_no, maxGen, stop
>  order by Rte_No, Stop, maxGen, Directn, SeqNo
>
>
>I have to ASC() the gen in order to MAX() itr as MAX() only works on numerical fields in MB.
>
>Terry

I prefer to say 'no way' :) Probably it doesn't support having clause (as if I can think what to add if that did:)
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform