Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query help needed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01296873
Message ID:
01297099
Vues:
14
>OK the same query, but you should find the right functions for converting:
>
>SELECT YourTable.*;
>       FROM YourTable;
>INNER JOIN (SELECT Sh, MAX(ConvertDateToISO(DateSaved)+' '+ConvertTimeToString(TimeSaved)) AS DateTimeSaved;
>                   FROM YourTable;
>            GROUP BY Sh) Tbl1;
>ON YourTable.Sh = Tbl1.Sh AND;
>   ConvertDateToISO(YourTable.DateSaved)+' '+ConvertTimeToString(YourTable.TimeSaved) = Tbl1.DateTimeSaved
>
>
>Where ConvertDateToISO() should convert your Date to string with folwong format "YYYYMMDD" and
> ConvertTimeToString() should convert Time to string no matter what format it is, just make sure that 12:01 PM is bigger than 12:01 AM it could be:
>"18:20", "1820", "66000" (that is 18*3600 + 20*60)

I'll take a look at the statement
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform