ms access - SQL Add column to normalize time of different Oil Wells -
i'm working on normalizing oil wells' production data can plot them if turn on @ same time. way add "normalized time" row table each well. normalized time reset 1 every time new introduced. i'm looking how add "normalized time" column below:
i'm working in ms access sql. how go adding new "normalized time" column? need wells appear start producing @ same time , easier compare.
you can use query:
select *, (select count(*) yourtable t t.well_name = w.well_name , t.rpt_date <= w.rpt_date) [normalized time] yourtable w order well_name, rpt_date
Comments
Post a Comment