15,895,850 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Petri Luoto (Top 4 by date)
Petri Luoto
13-Jan-12 14:55pm
View
Processing with real data 780.000 lines resulting in 268.000 lines took 11 seconds! Great! Also the solution is simple and the reulting table is clear with original data types:
2012-01-06 09:01 3581
2012-01-06 09:00 3222
2012-01-06 08:59 3268
2012-01-06 08:58 3314
2012-01-06 08:57 3254
I will use this solution. Thanks!
Petri Luoto
13-Jan-12 14:49pm
View
Thanks! Processing of 780.000 lines resulting in 268.000 lines took 14 seconds. Quite nice. But there was a problem: the time column went funny after 59 minutes:
2012-01-06 00:00:00.000 9:1:00 3581
2012-01-06 00:00:00.000 9:0:00 3222
2012-01-06 00:00:00.000 8:9:00 1116
2012-01-06 00:00:00.000 8:8:00 944
2012-01-06 00:00:00.000 8:7:00 960
2012-01-06 00:00:00.000 8:6:00 960
2012-01-06 00:00:00.000 8:59:00 3268
2012-01-06 00:00:00.000 8:58:00 3314
2012-01-06 00:00:00.000 8:57:00 3254
Petri Luoto
13-Jan-12 14:30pm
View
Thanks! I tried this, but for some reason got an error message: "Argument data type time is invalid for argument 1 of substring function."
I did not investigate it closer, but perhaps something with datatypes. Those were Date, Time(7), and int.
Petri Luoto
12-Jan-12 6:53am
View
Taking a closer look to result, it allways returns an array of 60 values. But actually it should return an array with 1440 values. In the table there are some 7300 values per day, which is around 5 values per minute. Those are the values which should be calculated for one average value, total of 1440 from the whole Table.
Perhaps you figure out another proposal, and with Time value included? Thanks in advance.