Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Order By
Message
 
 
To
26/01/2003 10:29:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00745530
Message ID:
00745545
Views:
19
Hi Jos,

>just ORDER BY MyTable.HiredDate would order in correct chronological order
>Year-Month-Day. Or have I misunderstood the question?

Not quite what I need. Say you want to send a Hired Date Anniversary card to each person who was hired during the Month of July no matter what year, and you want them printed out for your secretary in Month-Day order.

>Another option could be:

>SELECT Fld1, Fld2, FldX, MONTH( HiredDate ) AS nMonth, DAY( HiredDate ) AS
>nDAY FROM MyTable ORDER BY nMonth, nDay<
>

Yep... that did the trick. Thanks a million.

Mel Cummings
Previous
Reply
Map
View

Click here to load this message in the networking platform