Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - for datetime field.
Message
From
11/05/1998 18:01:50
 
 
To
11/05/1998 14:12:40
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00098538
Message ID:
00098604
Views:
28
>I have a datetime field in my VFP3 table. I want to COUNT all the records for my datetime field between a specified TIME regardless of the date.
>
>I want to find the busy times of the day for my system and use all the data in my system, not just one days worth of info.
>
>Can this be done with a SQL command?
>
>Thanks,
>
>Jerry Tovar

How 'bout

SELECT datetime, ttoc(datetime),count(*) from tablename group by 2 into cursor busytime
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform