Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select dates in a range not in a query.
Message
From
18/01/2000 04:39:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00319335
Message ID:
00319338
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform