Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Group data based on pattern

$
0
0

Hi,

here are two things I need to do with my data:

1. I have raw data, 10.000 rows per day coming in batches every hour (see sample data columns A-E). I need to process these data on a daily basis (so can be delayed) to get TripNo and BreakNo - see columns F-G.

2. Later on I need to make statistics like Trip1 for NameA stared at X and finished at Y, took Z kilometers, etc.

Any idea on approach here? Might it be some SQL code to query for data (A-E) and update my table (F-G fields)? Or better to have some .net code to do this?

Sample data https://www.dropbox.com/s/702a0atzw7k7k8o/Trip%20%26%20Break%20Detection%20sample%20input%20data.xlsx

Please advice.

Thanks.






Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>