Produce a graph showing the lowest of the 4 hourly values as a point

Good, new to this forum.

I am producing a graph in the APEX that shows the lowest value of every 4 hours to produce a point in my chart to a monthly chart.

I created a calendar for flashback data every hour from a database.
Then this bit of SQL for a diagram of the weekly display data of each hour:

Select the null link,
TO_CHAR (current_date, 'MON-DD-YYYY HH24') as a label,
(OLDEST_FLASHBACK_TIME * 24) AS #.
of flashback_history
where DATABASE_NAME = "#"


I want to get the lowest value of all 4 hours and display in the chart for a month.

Sorry if this makes no sense!

Thanks in advance
with tab as (select todays_date dt, OLDEST_FLASHBACK_TIME * 24 value
             from   flashback_history   where DATABASE_NAME ='####'     ),
-- end of mimicking a table "tab" containing some data
 results as (select dt, value, 4 * trunc((row_number() over (order by dt) -1) / 4) grp
             from   tab)
select min(dt) keep (dense_rank first order by value) dt, min(value)
from   results
group by grp
order by 1;

Mike

Tags: Database

Similar Questions

  • Graph showing the external loaded JavaScript to db (performance benefits)

    Hello everyone!

    I need a link to the chart, which shows the advantages of the loading of external JavaScript libraries to the database/application. I have it somewhere, but I can't. I need it because my personal COMPUTER companies insist that I have load jQuery into the database and the page server. As you know, this is terribly inefficient.

    The staff here, on behalf of security recommended that redirect them to one of our privileged file servers, I can't make them understand that we require and why their technique will not work.

    Any help finding a representation type graphic would be a great help for me. My team has several applications that are ready to deploy but the jQuery lives completely as static files in our database. If we had decent network performance, I could live with that, but it takes 5 times for a page to load here like nowhere else on Earth.

    Help, please!

    Thank you

    Charles

    Charles,

    I have exactly this kind of graphics in my presentation "Increasing scalability with Application Express.

    If you send me your email address, I'll send something more when I had the chance.

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • Trace files showing the bind variable value =""

    10g on solaris

    Hi all

    We have a problem with an informatica workflow brings an update statement in Oracle in trems of performace.

    I started using DBMS_SUPPORT tracing with lie the TRUE value. He captured the trace files accordingly against a controlled set of data. Trace TWOT files were produced.

    Trace files first shows the SELECT statement are questions that identifies the records that will be updated.

    The 2nd trace file shows the actual UPDATE statement published as a PL/SQL loop to do the update.

    There are 20 records that users have rigged last updated and the update statement lists 20 cases where updates taking place. All updates occurred successfully after reviewing the results of the post. However my question is why the trace files are showing the values of bind as the value ""?... any ideas appreciated!

    an excerpt of the file trace...
    PARSING IN CURSOR #1 len = 123 dep = uid 0 = 1482 oct = 6 lid = tim 1482 = 994827916280 = ad 3649357857 hv = "8b5b98f0."
    UPDATE / * + index (FCT_TASK IDX_FCT_TASK_CASE_SBL_ROW_ID) * / FCT_TASK SET DWH_LAST_UPD_DT = SYSDATE WHERE CASE_SBL_ROW_ID =: 1
    END OF STMT
    # 1 ANALYSIS: c = 10000, e = 980, p = 0, cr = 0, cu = 0, put = 1, r = 0, dep = 0, og = 1, tim = 994827916264
    =====================
    PARSING IN CURSOR #5 len = 227 dep = 1 uid = 0 oct = cover 3 = 0 tim = hv 994827919231 = ad 2190775527 = "8e622670".
    Select obj$ o, user$ u u.name, o.name, t.update$, t.insert$, t.delete$, t.enabled, trigger$ t where t.baseobject =: 1 and t.obj #= o.obj # and o.owner # u.user = # and bitand (property, 16) = 0 and bitand (property, 8
    ) = 0 order by o.obj #.
    END OF STMT
    ANALYSIS #5:c = 0, e = 1310, p = 0, cr = 0, cu = 0, put = 1, r = 0, dep = 1, og = 1, tim = 994827919223
    LINKS FOR #5:
    bind 0: dty = 2 mxl = 22 (22) bad = 00 scl = 00 pre = 00 = 00 = 0001 size = 24 offset = 0 oacfl2 oacflg
    BFP = bln ffffffff7c058d98 = 22 avl = flg 04 = 05
    value = 425212
    EXEC #5:c = 10000, e = 9476, p = 0, cr = 0, cu = 0, put = 1, r = 0, dep = 1, og = 4, tim = 994827928883
    FETCH #5:c = 0, e = 104, p = 0, cr = 1, cu = 0, set = 0, r = 0, dep = 1, og = 4, tim = 994827929051
    "STAT id #5 = 1 cnt = 0 pid = 0 pos = 1 obj = 0 op =' SORT ORDER BY (cr = 1 pr = 0 pw = time 0 = 172 en)"
    "STAT id #5 = 2 cnt = 0 pid = 1 pos = 1 obj = 0 op ='NESTED LOOPS (cr = 1 pr = 0 pw = time 0 = 110 US)"
    "STAT id #5 = 3 cnt = 0 pid = 2 pos = 1 obj = 0 op ='NESTED LOOPS (cr = 1 pr = 0 pw = time 0 = 105 en)"
    STAT id #5 = 4 cnt = 0 pid = 3 pos = 1 obj = op 79 ='$ TABLE ACCESS BY INDEX ROWID TRIGGER (cr = 1 pr = 0 pw = time 0 = 103 US)'
    "STAT id #5 = 5 cnt = 0 pid = 4 pos = 1 obj = 123 op ='INDEX RANGE SCAN I_TRIGGER1 (cr = 1 pr = 0 pw = time 0 = 78 US)"
    "STAT id #5 = 6 cnt = 0 pid = 3 pos = 2 obj = op 18 ='TABLE ACCESS BY INDEX ROWID OBJ$ (pr = 0 pw = time cr = 0 0 = 0 US)"
    "STAT id #5 = 7 cnt = 0 pid = 6 pos = 1 obj = op 36 ='INDEX SCAN SINGLE I_OBJ1 (cr = 0 pr = 0 pw = time 0 = 0 US)"
    "STAT id #5 = 8 cnt = 0 pid = 2 pos = 2 obj = op 22 =' CLUSTER ACCESS USER TABLE $ (pr = 0 pw = time cr = 0 0 = 0 US)"
    "STAT id #5 = 9 cnt = 0 pid = 8 pos = 1 obj = op 11 ='INDEX UNIQUE SCAN I_USER # (pr = 0 pw = time cr = 0 0 = 0 US)"
    LINKS FOR #1:
    bind 0: dty = 1 mxl = 32 (30) bad = 00 scl = 00 pre = 00 oacflg = 01 oacfl2 = 800000 size = 32 offset = 0
    BFP = bln ffffffff7c17b0a0 = 32 avl = flg 04 = 05
    value =""
    # 1 EXEC: c = 8390000, e = 8740989, p = 55593, cr = 55610, cu = 3, put = 1, r = 1, dep = 0, og = 1, tim = 994836657483
    LINKS FOR #1:
    bind 0: dty = 1 mxl = 32 (30) bad = 00 scl = 00 pre = 00 oacflg = 01 oacfl2 = 800000 size = 32 offset = 0
    BFP = bln ffffffff7c17b0a0 = 32 avl = flg 04 = 05
    value =""
    # 1 EXEC: c = 7980000, e = 7962369, p = 55591, cr = 55608, cu = 1, SIG = 0, r = 1, dep = 0, og = 1, tim = 994844621479
    LINKS FOR #1:
    bind 0: dty = 1 mxl = 32 (30) bad = 00 scl = 00 pre = 00 oacflg = 01 oacfl2 = 800000 size = 32 offset = 0
    BFP = bln ffffffff7c17b0a0 = 32 avl = flg 04 = 05
    value =""


    ect ect ect...



    Concerning
    Satnam
    BINDS #1:
    bind 0: dty=1 mxl=32(30) mal=00 scl=00 pre=00 oacflg=01 oacfl2=800000 size=32 offset=0
    bfp=ffffffff7c17b0a0 bln=32 avl=04 flg=05
    value=""
    

    'dty = 1' indicates that the data type is VARCHAR or NVARCHAR. As the timestamp data types data types BLOB, and various other, bind variables defined as NVARCHAR will not have their values dumped in a 10046 trace file. I suspect that the: 1 binding variable is passed as an a NVARCHAR2.

    Charles Hooper
    Co-author of "Expert Oracle practices: Oracle Database Administration of the Oak Table.
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • PXI-6120 HAVE values only show the low limit values

    Hello, I use a PXI-6120 with traditional DAQ driver module screws switch a signal of AI to a PFI channel that allows synchronization of area of OCCUPANCY the AI. In order to measure a single channel of AI with the same set-up, I stopped the criterion VI and tried to see the only measure max. Unfortunately, I opened a task DAQmx, I created for another application, which does not work probably because I have not reset the card after the stop of the VI. Since then, readings of IT are all flat on the lower limit values and the OD has remained at about 0.2 volts any value I write for her. In the meantime, I tried to reset and to recalibrate the device, which worked in DAQ and DAQmx (not the self-calibration in mx). But I have the impression, that the Council has kind of stuck in a State that I can't easily find and/or access. Does anyone have an idea, how can I do a factory reset, or what could be the problem? Greetings! Olli


  • Some graphs showing the color white or invisible while playing games

    Hello

    I juz hv bought a new pc with Windows 7, 64 bit. Graphics card is MSI hawk 1 G. However, while playing the game, some of the graphic is of white color and part is invisible. 2 same items side by side, 1 with a normal image, the other is white. Help, please. Thank you

    Hello

    Here is some information that may be beneficial to get a resolution to your inquiry.

    S ' Please try to uninstall the game and install it in Compatibility Mode

    -Try to run the game in Compatibility Mode.

    S ' Please check if the game is compatible with your operating system.

    -Create an another user account and try to play and the game

    -Uninstall/reinstall video card

    I hope that this information is beneficial.

    Thank you

    Aaron
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Probe shows the RMS incorect value in Multisim

    Why Probe1 I (rms) value is not equal to Probe2 I (rms) + Probe3 I (rms)?

    Because I'm a noob.

    Probe2 I (rms) = I (rms) Probe1 / sqrt (2).

  • How to use the graph of the intensity in the iPad data dashboard.

    Hello

    I use a graph of intensity in my vi main under a project of myRIO.

    I created a shared variable of the 2D array. When I selected the variable in the ipad it does not show that he presents in the pc...

    I want to mention that I have selected the multiplier as (= 30/255) 0.117647 in labview in pc

    I use the version of labview 2015 myRIO.

    and I am using iOS 10 in my iPad

    can someone help me please

    Hi adil,.

    The graph of the intensity is not supported in the dashboard of data.

    Kind regards

    Denny

    AE Singapore

  • How to make a graph in the hour

    I have an application that runs without interruption and sends the data in a txt file. I have labview then read this file and display the content on a chart. I want x-axis it in the chart in the correct local time, so that users can see how the data changes throughout the day. Ideally, it would show the data over a period of 24 hours with the max being present and the minutes being the time 24 hours ago. I guess it has something to do with the time stamp and is probably simple, but I can't understand it. Any ideas? Thank you

    Hi James,

    If you know the start time and the sampling interval so you can have the picture of the value of the axis of time for you.

    The value of the graph axis X hour Relative. Don't forget to set the length of the graphic story to be long enough to display all the samples you want to display.

    See the attached example. Here's the diagram:

    Steve

  • How to show the output of the signalexpress power spectrum in data dashboard

    Hey guys.

    I made a program that collect analog data from two sensors in vibration, and then I use the signalexpress power spectrum to get in the frequency domain.

    I would like to show the signals and the FFT in dashboard of data.

    It is not possible to display the data directly because the XY graph in data dashboard supports only the two figures on the right cluster table?

    Is it possible to convert data from the spectrum of power signalexpress table of cluster of two numeric values?

    Or any other ideas would be appreciated


  • Point display XY graph using the cursor data

    Hello all, I use XY graph to display amplitude v/s time. During the vi execution, data are continuously plooted on chart until the user stops the vi. I want to add a feature, such that, during the execution of the vi, when the user clicks on the chart to the situation with the cursor, it should show corresponding value of time and amplitude of this point. I mean the value of the axis corresponding to the category axis not the cursor position. When you use the position of the cursor, it is ok with the x axis, but it shows the cursor position for y axis (as property said), and I want datavalue said not not the position y axis.

    I hope it's clear with the question. I would like to have a few examples... for y = x graphic below, you can see cursor x = 4.4 and y = 6.8, how to view corresponding datapoint which must be y = 4.4

    When creating (or even after you've created), choose "align on the" plot 0.

    Do not let it be 'slide free.

    Attached example.

  • 3421 Dell showing the intel hd 4000 instead of 625 m nvidia in the index of windows

    Hello

    my laptop dell 3421 with 625 m NVIDIA 1 GB inbuild but graph showing only intel hd 4000 in index page of windows.

    I installed the drivers updated intel as well as for nvidia.

    My nvidia Control Panel have only 3d configuration to set.

    Please help me configure my graphics card.

    Windows will always see the Intel GPU as primary, as it is the only one who has a link with the display panel.  The nVidia GPU is simply a coprocessor - all going on video by the GPU from Intel data, even if it is handled by the nVidia kernel.  This is normal.

    You select the GPU on a per-application basis by using the control panel of Optimus (you should see it inside your Windows Control Panel).

  • Two slide shows showing the same images

    Hello

    I am trying to create my site and produced five pages.  We're on my training courses and I realized a slideshow and seven jpeg images uploaded. I also put the calendar and that it had set the coming slides horizontally. I have another page on my clients. Yet once, I realized a slide show, this time to fade and different timings. I downloaded then 9 jpeg images.

    However, on this operation, Muse have replaced seven pictures on my slide show of training courses with the images that I downloaded on my slide show sitting on my clients page. I then returned to the training page and uploaded the slides from training courses again. It is in in turn replaced the images on the blade of my client.

    So, how can there be a different set of jpeg images on my two shows different, sitting on different pages on my site?

    Concerning

    Neil

    P.S The pictures, were initially created in Powerpoint and then saved as images, I couldn't find a way to create a slideshow in Muse.

    Hi CARI (and others)

    I want to thank you and all the other people who helped solve the problem for me.

    It's that I had two different slide series with the same name. (Drag 1jpeg, Slide 2jpeg etc.).

    I had created a powerpoint to show seven courses I myself as a company, as I wanted to use a slideshow to show them, as well as having a menu drop-down. I had converted powerpoint photos so that I can upload them as 'add images '. Then I created another powerpoint, with nine slides showing the logos of my clients. Still, I've converted every slide in images which enabled them to be downloaded. (I guess that's what others are doing).

    That meant that when I downloaded the two sets of images, Muse must have selected a set of slides for the two shows, as they were named the same (1, plate 2, etc) and replace them as I watched them in the review. I have therefore renamed pictures, produced two new slideshows of the widget library, placed on separate pages on the Web site and the renamed uploaded images. It worked. I tested it, and it still works!

    Thank you once again

    Neil

    P.S. RE the remark made by John to name the images even. I agree and really disappointed for myself, that I angry with documents and presentations PowerPoint which is not named... and... at the date of the but did the same thing!

  • We had to show the filter selection

    Hi gurus,

    I recently started working on WebAnalysis.
    I have the following requirement:

    We had to show the filter selection in tag which I have been using < filter, 0 > in the label.
    But the problem is when the user selects another table or data grid, these filters value is changed accordingly.

    I need to show a graph or grid only filters.

    Help, please

    Thank you

    Hello

    Usually the datasource WA threads are named as "ReportDataSrc", so if your first grid or chart uses ReportDataSrc1 as a data source and then the filter should consult this grid using this thread to data source name is
    >,

    This will give you the name of the first name of Member of dimension filter as a label.
    For any procedure, please visit the WA user guide.

    Thank you
    YSP

  • How to show the legend in the chart?

    Is it possible to only show the graphic legend? I tried to look in the XML of the application, but I have not found anything. Help, please. :)

    Just add a custom chart

         
              
              
              
                   
              
         
    

    See also:
    http://obiee101.blogspot.com/2008/08/OBIEE-date-time-scatter-graph.html

    concerning

    John

    http://obiee101.blogspot.com

  • The field label to show the red asterisk to required field (graphic) dynamically

    Hello

    We have a form that uses the value of the element of an application to determine what fields are required. Using the validation of the page, we are able to enforce these mandatory fields.
    The problem is to get the chart of required field asterisk to conditionally display the label of the field.

    We tried the suggestion by Re: how to handle the label of the field to display red asterisk (required)
    It works but displays an asterisk in the text. We need to display the graph for the asterisk.

    To describe assume them have the following:
    APP_1 (point of application)
    P1_A_ASTERISK
    P1_A

    The default value for the P1_A_ASTERISK is a pl/sql function that checks APP_1 and affects P1_A_ASTERISK ' < img src = "" #IMAGE_PREFIX #requiredicon_status2.gif ' alt = 'Required field' / > "If P1_A should be required.


    If P1_A_ASTERISK is defined as hidden we get the html text < img_src... in the P1_A label.

    If P1_A_ASTERISK is defined as the display text, we see the graphic symbol in the P1_A label... it's good. But we also see the point of P1_A_ASTERISK that we do not want.

    Any suggestions on a way to dynamically display the graph of the mandatory field in some field labels?
    Thank you
    NANN

    Hello:

    You can try the following

    Create a copy of the label specified for P1_A model
    Change the section "before the label" of the template as shown below. Essentially, add you an id and set the visibility style attribute to the tag. You can get a graph of the image of your choice.

    
    

    Create a page with a point of process process of "On Load - footer after" with code similar to

    if :p1_asterisk='Show Asterisk Value'  then
       htp.p('
    
      ');
    end if;
    

    CITY

Maybe you are looking for