View online and MAX function

I've got this task somewhat complex combination of different matches from all tables in the columns of each table. I need advice to fix this.

Here's what I have:

Select
DM.wtdocumentnumber 'DOC_NUMBER. "
A4. TITLE "DOC_TITLE."
A4. DESCRIPTION "DOC_DESC."
OBH. UPDATESTAMPA2 "RELEASE_DATE".
org. NAMECONTAINERINFO "NOM_ORG"
Of
wcadmin.orgcontainer ORG,
wcadmin. PAPER A4,
(SELECT A4. Title, max (OBH. UPDATESTAMPA2)
FOR wcadmin. PAPER A4, wcadmin. OBJECTHISTORY ENTERED
Group by the A4. Title) OBH
where
((ORG. NAMECONTAINERINFO = 'ITT ACD' and
A4.ida2a2 = OBH.ida3a5 (+)
order by
1,2,5;


There is something wrong with the way I'm referenecing these tables, but I can't quite put my finger on it.
The relationship between the tables is as follows:
I want to go back to the last OBJECTHISTORY. UPDATESTAMPA2 that corresponds to the DOCUMENT. Title, so basically, the latest document.
The question is, the release date of each document is listed on the OBJECTHISTORY table. UPDATESTAMPA2, whether they are more recent or not. The only way would be to get the maximum objecthistory.ida3a5 and which corresponds to wtdocument.ida2a2. Then, like that I get only a date for each document.

I looked in inline mode and the max and the Panel, but do not know enough of SQL and oracle to understand this.

If anyone can help with this would be greatly appreciated

Thank you

Great, you are welcome and if you could mark this thread as answered thanks ;)

Tags: Database

Similar Questions

  • min and max functions

    Hello

    I need to do the calculation:
    (max (min (C, 2.375), 0) + max (min(Y,2.375), 0)) / 6

    If the value of c is less than 2,375 then it must accept the value of C 2,375 else.
    on this, I need the operation max.

    How can I do this?

    Looking for probably the LARGEST (de) and LESS () functions.
    Remember that you may also (ROUND) your C and Y to 3 decimal places during the comparison.

    Published by: Slow_moe on September 25, 2008 13:14

  • Get-view datastore and get-function data store

    Hey, my first time posting here.

    Creating a function which takes as input pipeline and processes that each entry through process in a function. I want the function to be able to take the 'get - view - viewtype datastore' and 'get-datastore' as input.

    Obtained in what concerns obtaining the opinion of the GET and get-datastore work separately in the service, but when I want the function to be able to take one or the other input that I can't make it work.

    Here is the function at this moment, not really work for one of the entries.

    Function Get-DatastoreSpace () {}
    [cmdletbinding()]
    (param
    [Parameter (mandatory = $true,)]
    ValueFromPipeline = $true)]
    $Datastore
    )

    BEGIN {$ReportDatastore = @ ()}

    {IN PROCESS

    $row = "" | Select-Object Datastore_name, Datastore_Freespace_GB, Datastore_type, Datastore_Capacity_GB
    $row. Datastore_name = $_.name
    $row. Datastore_type = $_.type
    $row. Datastore_Capacity_GB = [math]: tour ($_.) Capacity / 1 gb, 3)
    $row. Datastore_Freespace_GB = [math]: tour ($_.) FreeSpace / 1 gb, 3)

    $ReportDatastore += $row

    }

    END {$ReportDatastore}

    }

    Any ideas on how to do this?

    Thanks in advance

    Eirik

    Check the type of the object in the variable $datastore.

    Something like that

    if($datastore -is [VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.VmfsDatastoreImpl]){
    # From Get-Datastore
    }
    elseif($datastore -is [VMware.Vim.Datastore]){
    # From Get-View -ViewType Datastore
    }
    else{
    # Wrong object type
    }
    
  • Using the MIN and MAX functions

    Hello

    Guide to please the following:

    I have a table with records like below:


    Invoice ID RegistrationNo InvoiceDate
    1 AB-1 JANUARY 1, 10
    2 CB-4 MARCH 23, 10
    3 AB-1 1ST JULY 10
    4 FG-2 AUG 1, 10
    AB - 5 1 7 FEBRUARY 11
    CB - 6 4 FEBRUARY 8, 11
    7 CB-4 12 AUG 11

    I want to pass the result of the SQL query, as below

    For RegistrationNo = AB-1

    Reffacture RegistrationNo InvoiceDate
    3 AB-1 1ST JULY 10
    AB - 5 1 7 FEBRUARY 11

    For RegistrationNo = CB-4

    Reffacture RegistrationNo InvoiceDate
    CB - 6 4 FEBRUARY 8, 11
    7 CB-4 12 AUG 11

    I want to get that two records by RegistrationNo with the previous date of min, whose date max more forward.



    Kind regards

    Something like that?

    WITH A AS (SELECT 1 INV_ID, 'AB-1' REG_NO, TO_DATE ('01-JAN-10', 'dd-mon-rr') INV_DATE FROM DUAL
                UNION
               SELECT 2 INV_ID, 'CB-4' REG_NO, TO_DATE ('23-mrz-10', 'dd-mon-rr') INV_DATE FROM DUAL
                UNION
               SELECT 3 INV_ID, 'AB-1' REG_NO, TO_DATE ('01-JUL-10', 'dd-mon-rr') INV_DATE FROM DUAL
                UNION
               SELECT 4 INV_ID, 'FG-2' REG_NO, TO_DATE ('01-AUG-10', 'dd-mon-rr') INV_DATE FROM DUAL
                UNION
               SELECT 5 INV_ID, 'AB-1' REG_NO, TO_DATE ('07-FEB-11', 'dd-mon-rr') INV_DATE FROM DUAL
                UNION
               SELECT 6 INV_ID, 'CB-4' REG_NO, TO_DATE ('08-FEB-11', 'dd-mon-rr') INV_DATE FROM DUAL
                UNION
               SELECT 7 INV_ID, 'CB-4' REG_NO, TO_DATE ('12-AUG-11', 'dd-mon-rr') INV_DATE FROM DUAL)
    SELECT INV_ID,
           REG_NO,
           INV_DATE
      FROM (SELECT INV_ID,
                   REG_NO,
                   INV_DATE,
                   ROW_NUMBER() OVER (PARTITION BY REG_NO ORDER BY INV_DATE DESC) RN
              FROM A
           )
     WHERE RN<3
    ORDER BY REG_NO,
             INV_DATE DESC
    
  • I can't download attachments in Windows Live, although I can view online when the link is there and can also download zip.

    Cannot download attachments in windows live, although can view online when the link is there and can also download zip. What has happened recently. I was always able to do until recently.

    original title: Windows Live Mail

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • Max and min function

    I have a special request, I'm looking for the max and, possibly, of the minutes of the date that the order was made.

    EMP_ID Full_Name Date
    1 Jim Smith 02/01/2011
    1 Jim Smith 13/01/2011
    1 Jim Smith 15/01/2011
    2 Susan Morgan 20/02/2011
    2 Susan Morgan 22/02/2011
    2 Susan Morgan 25/02/2011
    2 Susan Morgan 28/02/2011

    So, if I have 2 tables Emp and joined by say Emp_id orders and I need the elements following result set

    EMP_ID Full_Name Date max (date) min (date)
    1 Jim Smith 1/2/2011 1/15/2011 1/2/2011
    1 Jim Smith 1/13/2011 1/15/2011 1/2/2011
    1 Jim Smith 1/15/2011 1/15/2011 1/2/2011
    2 Susan Morgan 2/20/2011 2/28/2011 2/20/2011
    2 Susan Morgan 2/22/2011 2/28/2011 2/20/2011
    2 Susan Morgan 2/25/2011 2/28/2011 2/20/2011
    2 Susan Morgan 2/28/2011 2/28/2011 2/20/2011


    It is a simplified query that my orginal query has more columns that I have to choose and more tables. I don't know if I can use a select group on because I would have to force all the columns and that would be just grap date unique columns max since I bring together down the line

    Hello

    Oracle_Rookie wrote:
    ... I don't know if I can use a select group on because I would have to force all the columns and that would be just grap date unique columns max since I bring together down the line

    Yes, probably do not want to use GROUP BY. Use more Analytics MIN and MAX fucntions. For example:

    SELECT       deptno
    ,       ename
    ,       hiredate
    ,       MAX (hiredate) OVER (PARTITION BY deptno)     AS last_in_dept
    FROM       scott.emp
    ORDER BY  deptno
    ,            hiredate
    ;
    

    Output:

    `   DEPTNO ENAME      HIREDATE  LAST_IN_D
    ---------- ---------- --------- ---------
            10 CLARK      09-JUN-81 23-JAN-82
            10 KING       17-NOV-81 23-JAN-82
            10 MILLER     23-JAN-82 23-JAN-82
    
            20 SMITH      17-DEC-80 23-MAY-87
            20 JONES      02-APR-81 23-MAY-87
            20 FORD       03-DEC-81 23-MAY-87
            20 SCOTT      19-APR-87 23-MAY-87
            20 ADAMS      23-MAY-87 23-MAY-87
    
            30 ALLEN      20-FEB-81 03-DEC-81
            30 WARD       22-FEB-81 03-DEC-81
            30 BLAKE      01-MAY-81 03-DEC-81
            30 TURNER     08-SEP-81 03-DEC-81
            30 MARTIN     28-SEP-81 03-DEC-81
            30 JAMES      03-DEC-81 03-DEC-81
    

    Most of the aggregates fucntions have analytical counterparts, which can give you the same results without collapsing the entire down to one line per result group. The analytical PARTITION BY clause matches the GROUP BY clause in an aggregate query.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Make the sample data as simple as you can, so it has the same problem that occurs in your actual query.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

    Published by: Frank Kulash, March 15, 2011 12:50

  • One of my computers works very well to display my beneficiaries of my bank online and the other computer says that I don't have any beneficiary, worm 35 on both.

    Everything on my online banking Web site works fine except the display of my beneficiaries. It does not, he tells me that I don't have any beneficiary. This function works very well on my backup computer with 16, 32, and 35 versions.

    That's what my Bank said:
    There was some problems with the compatibility of Firefox to view online recipients. Please, try the following steps to clear the cache and delete cookies. If there is still a problem, start Firefox in Mode safe. While you are in safe mode, press the < Alt > or < F10 > to display the toolbar. Then select Tools > Options > advanced > general. Find and stop using hardware acceleration.

    Boot in safe mode to fix the problem, but it's a bit of a pain. A refreshment or a reset seems a little drastic and I would like to know what exactly is the problem before using the shotgun approach.

    Thank you

    Thanks for the replies. I have try to disable hardware acceleration, but probably no connect fees. My only add-on is edge of adblock and I disabled it for the site. The thing is, I don't want to disable either of these elements. I'll just start firefox in safe mode, if I need to access my beneficiaries. I was hoping that someone may know something that is bad in my profile that has carried over from previous versions or another kind of corruption. It seems strange that an entire site could work very well with hardware acceleration, but not to this one point.

  • I want to record with &lt; alt &gt; &lt; s &gt; in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    Question
    I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    edit, escaped mod < s > in order to avoid the line through question

    A web page can be defined a "accesskey" for an item. Unlike IE/Chrome/Safari, who use the Alt key only, Firefox requires pressing Alt and Shift to activate the element. In other words, try

    ALT + SHIFT + S

    and see if it works.

    I don't know of any way to change this so that the change is not necessary. There may be an add-on?

  • I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in one class. How to unlock my password. Carol in English

    I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in ONE class. How to unlock my login and my password, so that I can use it for all classes. Carol in English

    "Remember Me" for the site connections automatically when you return to the Web site is done with a Cookie the site in Firefox.

    Try to clear your Cookies for this Web site.

    Tools > Options-> life privacy - Cookies = the button show Cookies.

    You must use the custom settings for history at the top of this tab to see the View the Cookies button.

    Enter the domain name in the top search bar and all Cookies for this URL will be displayed. Unless you can figure out which is Cookie to "remember me", you will need to delete them all.

    Hold the {Ctrl} key while you click each Cookie in the small window. When this list is all highlighted, click the Cookie delete button at the bottom left.
    When you are finished click Close.

  • Min and Max on a table

    Hello. I want to make a program where I want to generate a sine and take only the monotonous positive part.

    So I thought to find the min and max of the function index and make a program like the one attached.

    As you can see that if you set the frequency to 10 Hz, it works fine... the problem is when you change the frequency such as 20 or 50 H.. t seems that it is not find the min and max correctly.

    Can you suggest me some tips?

    Thank you

    s.turino84 wrote:

    and take only positive part monotonous.

    This means that the derivative is positive.  So, make a derivative.  If the derivative is greater than 0 keep the present value, or the value 0.

  • I can't view videos and news.

    I can't view videos and clips of news such as Yahoo news and ABC News videos. I removed and re-installed Adobe Flash, readers of the wave of shock and Java. I am setting up a new computer for my granddaughter using Windows 7 and it has the same problem.

    Hi johnrebl,

    (1) you get an error message?

    (2) is this problem limited to online videos?

    Since you filed your application on the Windows Vista category, I think that you are running Windows Vista on your computer, and I believe that you use Internet Explorer as your web browser, let me know if you use something else.

    Problem may be caused by the codec; Windows uses codecs to allow users to view audio and video digital streams in Windows, Internet Explorer and Media Player.

     

    Method 1: Check if these clips work very well on several different computers in order to eliminate any problems with the Web site or the clips himself.

    Method 2: Run the fixit available in the link below and check if that makes a difference

    Playing video files crashes or blocking Internet Explorer or Windows

    http://support.Microsoft.com/GP/video_freezes_or_crashes

    Method 3: You can follow the steps mentioned in the link below

    What happens if I can't see videos on the Windows website?

    http://Windows.Microsoft.com/en-us/Windows7/what-if-I-cant-see-videos-on-the-Windows-website

    Thanks and greetings

    Ajay K

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

  • How to get the angles of view (horizontal and vertical) camera?

    How to get the angles of view (horizontal and vertical) camera?

    The horizontal and vertical field of VIEW properties are available with the camera_get_physical_property() function.

    Who is using the C API of the photo. I don't think that you can access by using the control of the camera of Cascades.

  • Re: view opaque and the materialized view

    Hi Experts,

    I want some clarification of opaque and view view in the physical layer OBIEE materialized

    -> what is the main difference between the opaque view and materialized in the RPD perspective view, we have to do this at the level of the RPD or DB.

    -> I want the list of opaque opinion and materialized in the RPD view how I should do.

    -> How opaque views will degrade the performance and how a materialized view will improve performance at the level of the report.

    -> In scenarios that we use view opaque and the view materialized (if possible with a scenario for the best permanent basis).

    Thanks in advance.

    I want some clarification of opaque and view view in the physical layer OBIEE materialized

    -> What is the main difference between opaque view and create the materialized view in the RPD point of view, we have to do this at the level of the RPD or DB.

    Opaque views is a SQL statement that is defined in the physical layer, OBIEE will use all in the construction of a SQL query. In a way it's not different from a database view, except it is set in OBIEE only. Alternatively, you can deploy an Opaque view, which pushes its definition in the database. Read more about it here: work with physical tables, Cubes and joins - 11 g Release 1 (11.1.1)

    A materialized view (MV) is a database concept where the results of a SQL statement are physicalised like a table, and therefore as OBIEE is a MV is just another physical array

    -> If I want a list of the opaque views and materialized in the RPD view how I should do.

    To find opaque views, use the function «Repository of applications» administration tool Search physical Tables and set up a filter on the Type = Select

    Screenshot: https://www.evernote.com/shard/s16/sh/5c843e47-bff1-4d4b-b847-be98f3a2ec09/cf060a6cd9805f687fa0b5b46f3f0020

    To find materialized views, you will need to query the catalog in your database (for example select object_name, object_type from user_objects where type_objet = "MATERIALIZED VIEW" ;) and compare it to the list of tables in your SPR)

    -> How opaque views will degrade the performance and how a materialized view will improve performance at the level of the report.

    A materialized view is materialized, in other words, the results are already stored in the database. This means usually there will be more efficient because all the joins and aggregations, etc. will be settled in advance.

  • Oracle: how to use the max() function in expression box

    How to use the max() function in the case where expression, please explain with an example

    Hope this helps and should be explicit

    with t as
    (select 1 col,100 col2 from dual union
    select 2 ,100 from dual union
    select 2 ,200 from dual union
    select 3,100  from dual union
    select 3,200  from dual  )
    select col, case when max(col2)=100 then 'with 100 range'
    when  max(col2)=200 then 'with 200 range' end  from t group by col
    
  • Integration of the RGS with view Agent and Client Protocol

    I want to a question about the HP RGS Protocol. Last week, I attended VMWare Partner Exchange 2009 in Orlando, Florida and gave a demonstration of what I believe, this is the option to select MS RDP or ROWS in the Client view. I forgot to ask what version of the Client view the instructor used, and if it was even available for download now.

    So I would like some clarification. Is the latest version of the Agent view and customer have integrated the RGS protocol supported?

    VMware-viewagent - 3.0.1 - 142034.exe

    VMware-viewclient - 3.0.1 - 142034.exe

    I think without integrating with the view Agent and the customer, there is no point in using the function view connection 'Entitlement' Manager, because you can simply load the receiver client RGS on any PC and connect to a virtual desktop with the RGS sender installed.

    Any comment is appreciated.

    scnguye2 wrote:

    I want to a question about the HP RGS Protocol. Last week, I attended VMWare Partner Exchange 2009 in Orlando, Florida and gave a demonstration of what I believe, this is the option to select MS RDP or ROWS in the Client view. I forgot to ask what version of the Client view the instructor used, and if it was even available for download now.

    So I would like some clarification. Is the latest version of the Agent view and customer have integrated the RGS protocol supported?

    VMware-viewagent - 3.0.1 - 142034.exe

    VMware-viewclient - 3.0.1 - 142034.exe

    No, RGS support isn't in 3.0.1. This feature is in a next version (which is in the Release Candidate phase right now).

Maybe you are looking for

  • Can never get Apple live event.   Why

    I am able to bring the previous page that should have an arrow start to follow the Apple event live but the start arrow appears on the phone. Not the iMac 2 or 3 iPads.  Why.  ?

  • Latitude E7470 external screens with Dock problems

    Hello I have a Latitude E7470 for work and when I started to use it with my docking station for external monitors, I was noticed a similar problem as grew up in the thread below. One of my two external monitors would be (seemingly at random) twinkle

  • 27xi and web printing does not work with Firefox

    I just bought this HP 27xi monitor to Costco and thinking about buying another soon. I use Firefox and went to print this web page I printed before using my HP monitor HP desktop computers and smaller and had no problem. Last night, I try to print to

  • OfficeJet 4630: Officejet 4630 lights up then left

    When I turn on my printer, it seems to go through the usual startup routine. But when it comes to the initialization of the scanner, the carriage moves slightly and the quickly "slams" back to it's starting position. My printer turns off immediately

  • How to view traffic on the network for window icon 7?

    In XP, whenever there is network traffic, the network icon flashes, but it does not Flash in Windows 7. I would like to know how do network icon flashes on window 7. Does anyone have any suggestions? Thanks in advance for your suggestions