Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filtering problem...
Message
De
01/05/2001 03:10:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/05/2001 02:04:48
N. Lea
Nic Cross Enterprises
Valencia, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00501870
Message ID:
00501874
Vues:
14
>Our last programmer created this free table, and the date information that was inputted is located in a character field. Therefore when try to set a filter it filters the data on the first couple of characters. I have tried LEFT, RIGHT, SUBSTR, but have no luck. Can anyone help me in trying to figure a way to filter this table by date. This table has over 20,000 records. Thanks!

Lea,
But you don't give a clue how the date format is. You could do a conversion to date format. ie: say current format is MMDDYYYY. :
alter table myTable add column Newdate d
replace all NewDate with ;
date(val(substr(Old,5,4)),val(substr(Old,1,2)),val(substr(Old,3,2)))
PS:Some formats are compatible with directly setting new field type to date.
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