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

Group data based on pattern

$
0
0

Hi,

here are two task:

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 stoped at Y, tool Z kilometers, etc.

Any idea on approach here? Miht it be some SQL code to query for data without F-G fields and update my table? 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 15694

Trending Articles



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