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:

enter image description here

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -