Is there a function that will take an existing series of values in oracle SQL for Apex and will make a trendline based on those values? -


i create trendline based on values returned query. logic needs applicable other cases of placing trendlines on series in oracle plsql apex.

my series has x values dates , y values time values. here query outputs dates , y values:

select                   null link,                 (start_date) label,                   round(avg(run_time),3) "average length"               (select job_id,                     (case :p4_date_chooser                           when 'daily' trunc(start_time)                          when 'weekly' trunc(start_time, 'ww')                          when 'monthly' trunc(start_time, 'mm')                      end) "start_date",                       1440*(end_time - start_time) "run_time"             apps.ni_infa_activity_log_v@util.world                       (:p4_job_size_chooser = 'tiny' , (1440*(end_time - start_time)) <= 1         or          :p4_job_size_chooser = 'small' , (1440*(end_time - start_time)) > 1 ,                          (1440*(end_time - start_time)) <= 5         or          :p4_job_size_chooser = 'medium' , (1440*(end_time - start_time)) > 5 ,                          (1440*(end_time - start_time)) <= 20         or         :p4_job_size_chooser = 'large' , ((1440*(end_time - start_time)) > 20)         or         :p4_job_size_chooser not in('small','medium','large','tiny') , (1440*(end_time - start_time)) > 0)          ,         (infa_type_code = 'workflow')         ,         object_name = :p4_workflownames         ,         (         :p4_data_volume_chooser = 'small' , success_source_rows < 100         or         :p4_data_volume_chooser = 'medium' , success_source_rows > 99 , success_source_rows < 10000         or         :p4_data_volume_chooser = 'large' , success_source_rows > 9999         or         :p4_data_volume_chooser not in ('small','medium','large')         )           )          start_date between                       (case :p4_date_chooser                           when 'daily' trunc(to_date(:p4_begin_dates, 'mm-dd-yy'))                          when 'weekly' trunc(to_date(:p4_begin_dates, 'mm-dd-yy'), 'ww')                          when 'monthly' trunc(to_date(:p4_begin_dates, 'mm-dd-yy'), 'mm') end)                   ,                     (case :p4_date_chooser                          when 'daily' trunc(to_date(:p4_end_date, 'mm-dd-yy'))                          when 'weekly' trunc(to_date(:p4_end_date, 'mm-dd-yy'), 'ww')                          when 'monthly' trunc(to_date(:p4_end_date, 'mm-dd-yy'), 'mm') end)   group start_date   order start_date         ; 

ideally, i'd able use existing query source new subquery.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -