Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT last month not found?
Message
 
 
To
13/12/2004 18:48:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00968941
Message ID:
00968953
Views:
8
>A simple case: I have a table with two relevant fields, and (month is represented as YYYYMM). This table has history for each part, starting from the current month and going back to some date in the foggy past.
>
>For each partno, how do I determine the last for that part nothat is NOT found in the table?

Jim,

I'm not sure I understand you correctly but would this work for you (pseudo code)?
SELECT partno, MAX(GOMONTH(YYYYMM, 1)) AS lastmonsplusone ;
...
GROUP BY partno
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform