Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select dates in a range not in a query.
Message
De
18/01/2000 04:39:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00319335
Message ID:
00319338
Vues:
11
>I need to create a query that will return mssing dates within a range.
>e.g. Between the 01/12/1998 and 30/11/1999 - say there is no data for the first two weeks of december 98. I need to know which dates are missing to run a routine to 'patch' in this mssing data from dates that do contain data.
>
>Any ideas?


If I understood it correctly :
ldStart = {^1998/12/01}
ldEnd = {^1999/11/30}
do while ldStart <= ldEnd
  if !seek(ldStart,"myTable","myDateTag")
   *...
  endif
  ldStart = ldStart + 1
enddo
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
Répondre
Fil
Voir

Click here to load this message in the networking platform