Grouping in select

Hello
I wont to join to tables , one of them - t_max -  contain set of dates
create table t_max(t_max_id       number,
                                    t_max_dat   date)
create table t_dat(t_dat_id        number
                                  t_dat_dat   date)
whether it is possible in this case somehow to be without server function like
create or replace function f_get_max_dat(id in number) return date is
  Result date;
begin
  select max(t_max_dat)
    into Result
    from t_max
  where t_max_id = id;
  return(Result);
end;
to get data
select
  t_max_id
         ,max(t_max_dat)
         ,t_dat_dat
from
t_max, t_dat
where
t_max_id  = t_dat_id
group by ...
I'm usung 11.2.0.3
Thanks and regards,
Pavel

Any reason you can't just do this:
select   
  t_max_id  
         ,max(t_max_dat)  
         ,t_dat_dat  
from   
t_max, t_dat  
where 
t_max_id  = t_dat_id  
group by t_max_id,t_dat_dat

Similar Messages

  • Hide Particular Item Group from Selection Criteria of Sales Analysis Report

    Hello Experts,
    Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
    I have one Item Group as 'Special Items'.
    Now, when I open  Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
    Thanks in advance.
    Best Regards,
    Pankit Sheth

    Hi,
    1. Not possible to put validation for selection criteria windows.
    2. In standard, I don't think it is possible to hide only one item group.
    3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
    Thanks & Regards,
    Nagarajan

  • Is there a way to change the duration of a group of selected clips all at once?

    Hi all,
    I'm working with good old Premiere 6 on Windows 7.
    Is there a way to change the duration of a group of selected clips all at once?  If I have a large group of clips in my timeline that are all the same duration, once I've selected them all in a group, can I somehow change the frame number duration of all the clips at the same time?
    I've found other things that can be done to a group of clips at the same time, but I can't find a way to change the duration of a group of selected clips.
    Thanks,
    digi

    Thanks Jim and Bill,
    In my efforts to work around the problems with the distortion and horizontal interlace lines that come when using the Motion Settings, I'm doing stop frame animation with hundreds and hundreds of layers in PSDs in multiple files placed in hundreds of one, four and six frame sections in Premiere, so if I find that I need to change the number of frames per clip in hundreds of consecutive clips (not actual duration of speed changes), then I need to pull out the right side of hundreds of frames after first moving them apart enough to allow for changing them if I'm making them longer.
    These animations are different from the rotating reel animations in that they are for laterally moving subjects that are long streams of moving graphics and photos.
    I read about "clip nesting", but I think that only applies to clips or groups of clips that are the same, whereas my clips are each from different imported layers times 125 or so, consecutively placed one after another to create the laterally moving stop frame animation.
    Now I've tried johnbmx4christ's alternate method of creating rotations that was just posted on the other thread about the rotation distortion, but that method results in the same oblong distortion and messed up looking horizontal interlace lines.
    What a can of worms.
    Thanks,
    digi

  • Where Used for Code groups or Selected Sets

    Dear all,
    can any body plz tell me how can i know which code group or selected set is used in what qualitative MICs.
    either any report or transaction...
    thanks in advance
    zeeshan

    Hi Zeeshan,
    According to my information,,,
    For Code Group
    In QS41/42/43/44, reach up to the second screen "Change View: Codes" Overview. And then click on the "Used in Selected Set" Or short key "CntrlShiftF3"
    For Selected Set.
    I think no such std sap report is available. But what you can do is use the work bench CWBQM in display mode,,,,,
    - CWBQM---> select the "Current Working Area" as "Q_OPR_000000000010".
    - Apply the Basic Selection or Additional Selection Criteria" and then press Cntrl+F7.
    - the list of the MIC data will be available here.
    Or
    You have to write done a query SQVI
    Or
    Develop a customized report.
    Regards,
    Shyamal

  • Code groups, codes & selected sets during UD

    Dear Friends,
    Can I create my own catalog types.
    I have created my own catalog types.
    1) For Usage Decision (R)
    2) For Defets recording (P)
    During defect recording the system is picking the code groups & codes created by me and which are assigned . It is not showing other ones.
    But during Usage decision it is picking all the code groups, codes & selected sets attached to standard UD catalog "3".
    I am unable to understand how the system is behaving like this.
    I have created my own notification type Y1. I have created my Catalog profile (YQM000001).
    I have assigned this profile to inspection type.
    I have assigned this notification type to inspection type.
    In the catalog profile YQM000001, I have assigned two catalogs (R & P).
    In catalogs & catalog profile for notification type, problems field assigned the catalog type "P".
    One more issue while recording the defects I am getting notification type as Y1 (created by me) but the catalog profile is showing standard one "QM0000001".
    I am unable to understand these all. Do anybody has got any solution.

    Dear Anuradha,
    There is no need to create separate catalog type  for your problem of displaying specific UD codes while giving user decision. You can assign the specific 'UD selected set' from catalog type 3 ( User decision) in SPRO ' Maintain inspection type'  for QM. Following is the path you can assign the  desired UD option you need to see while recording UD:
    SPRO >> Quality Management >> Quality Inspection >> Inspection lot creation >>  Maintain inspection types >>execute >> select the  inspection type say '01' and view details >> there will be field UD selected set, assign the specific selected set made for  your plant and  save.
    By doing this when you go for giving any UD, codes defined by you only will be displayed (not all).
    Didn't understand your issue related to notification, but in same above screen you can also assign notification type for particular insp. type.
    Looking at your  requirement there is no need to create separate insp type or notification type  just make proper use of  existing one and do proper assignment.
    Please let me know if you have any problem in resolving this.
    Best Regards,
    Shekhar

  • Process Groups Attribute selection in SAMLIdentityAsserter

    I have the server configured as relying party. The incoming SAML token has the group attribute generated. In SAMLIdentityAsserter I have the the 'Process Groups Attribute' selected. However, It doesn't seem to map the groups and roles to user. What does "process groups attribute" selection do?
    Thanks,

    baltwo wrote:
    Thanks for clarifying. Never heard it called a text field, just a label. So, exactly what are you trying to accomplish? Is it that you want AS to select the file, highlight its label so you can edit/change it with some other text? If so, have you checked out the Finder scripts installed on the machine, especially the Finder script *Add to Finder Names*?
    UI Element Inspector calls the activated/editable filename a text field.
    Actually I want to modify one of the stock Finder scripts. I want to be able to select part of the file name in the active text field of the Finder window, then activate the script, *have the script pick up the selection* as a text string then use it internally.
    The bolded step is the one in question.
    Every attempt fails on the fact that the focus is lost from the "text field" and it reverts to the label for the filename, if I may use this distinction, (or to "FinderItem" in the parlance of UIEI) as soon as another process begins, it seems. So when the script becomes active, but before any of the commands is executed, the selection disappears.
    My guess is that it is not some absolute necessity but a setting that perhaps can be changed somehow.

  • HT203175 My own group of selected playlists has disappeared from my computer screen

    My own group of selected playlists has disappeared from my computer screen. Therefore I cannot add tunes to them and am scared to synchronise the ipod in case they disappear from there.  Can anyone help a computer illiterate.

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be renamed as iTunes Library.itl to restore the library to a recent state.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    I've noticed more of these missing library posts of late and a common factor to most since I started asking is AVG Anti-Virus. It seems in some cases it might be at least part of the reason why the library file disappears. Try excluding the iTunes folder from any AV scanning process.
    tt2

  • HowTo? Add ACR Snapshot Label to group of selected images?

    I've used the ExtendScript toolkit to modify and create scripts for ACR and Photoshop. I'm unclear if the following is possible:
    In ACR, add the same Snapshot Label to a group of selected images
    For example: the label "A_AsShot" to all images
    Add the label "B_Wb-Cropped" to a subset of images
    Add the label "C_B/W" to a subset of images
    etc.
    If not in ACR, can something like the above be done in LR? I'm unclear if LR allows scripting.

    Hi Pi,
    Not quite sure what the purpose of that button is.
    You'll laugh about this sometime not too long from now. Sometime, you will have a bunch of photos selected and *not want to change your selection*, but you'll notice that you need to add some metadata or adjust just 1 of those pictures. That's when you use the "primary only". When you find yourself in that situation, it'll be like a "eureka" since you're currently wondering what it's all about.
    nathan

  • Using ios 7.0.4 can a group email be sent either from icloud or iPhone by a means other than selecting the individual Contact, ie; can the group be selected and then an email composed that will send the message to all group members.

    Using ios 7.0.4 can a group email be sent either from icloud or iPhone by a means other than selecting the individual Contact, ie; can the group be selected and then an email composed that will send the message to all group members.

    Hi Richard, 
    Thanks for the reply - I think I've sorted it though and there isn't actually an issue.
    The whole group wasn't receiving the NDR, only the group manager which I setup a few weeks prior. This is a new feature so it complies with certain RFC's, basically the group manager will recieive the NDR to let them know there is a problem.
    Something to do with mass mailing and unsolicited mail.
    Ta
    Ian

  • How Can I Get Group By Select Statement To WorK?

    How can I get Code2 to work correctly? Code1 works fine. A user enters the customer and a date range on a form and submits request. I get error message in Dreamweaver. You tried to execute a query where the specified expression field3 is not part of an aggragate function I set the Form variables to: Name                            Default Value        RunTime Value Search_Criteria                    1                    Request.Form("Search") Date1                                  1                    Request.Form("Date1") Date2                                  1                    Request.Form("Date2") Code1. This works fine SELECT Field3, Field10, SUM(Field16) as SumofField16 FROM CustomerHistory_CP WHERE Field3 LIKE '%Search_Criteria%' AND Field6 >= #1/2/09# AND Field6 <= #1/30/09#  GROUP BY Field3, Field10 Code2. I get error message SELECT Field3, Field10, SUM(Field16) as SumofField16 FROM CustomerHistory_CP WHERE Field3 LIKE '%Search_Criteria%' AND Field6 >= #Date1# AND Field6 <= #Date2#  GROUP BY Field3, Field10

    That requires you to enter the configuration correctly.  You can find out the configuration for your email from your ISPs website in most cases. Or if you're using Gmail, Yahoo, or Hotmail you need only Google something like:
    "Gmail configuration for Apple Mail"  or  "Hotmail configuration for Apple Mail" (without the quotes). 
    That should get you started..
    Jeff

  • Group By Select Statement aggregate function error.

    I am using Dreamweaver MX4 and have an ASP web page. I can easily do this in Access 2007 a simple "group by" sum totals statement.
    Why can I not get this to work on a web page? Are the "#" signs messing this up in the Code2 Select Statement?
    How can I get Code2 to work correctly? Code1 works fine. A user enters the customer and a date range on a form and submits request. I get error message in Dreamweaver. You tried to execute a query where the specified expression field3 is not part of an aggregate function
    Code1. This works fine SELECT Field3, Field10, SUM(Field16) as SumofField16 FROM CustomerHistory_CP WHERE Field3 LIKE '%Search_Criteria%' AND Field6 >= #1/2/09# AND Field6 <= #1/30/09#  GROUP BY Field3, Field10
    Code2. I get error message SELECT Field3, Field10, SUM(Field16) as SumofField16 FROM CustomerHistory_CP WHERE Field3 LIKE '%Search_Criteria%' AND Field6 >= #Date1# AND Field6 <= #Date2#  GROUP BY Field3, Field10

    I am using Dreamweaver MX4 and have an ASP web page. I can easily do this in Access 2007 a simple "group by" sum totals statement.
    Why can I not get this to work on a web page? Are the "#" signs messing this up in the Code2 Select Statement?
    How can I get Code2 to work correctly? Code1 works fine. A user enters the customer and a date range on a form and submits request. I get error message in Dreamweaver. You tried to execute a query where the specified expression field3 is not part of an aggregate function
    Code1. This works fine SELECT Field3, Field10, SUM(Field16) as SumofField16 FROM CustomerHistory_CP WHERE Field3 LIKE '%Search_Criteria%' AND Field6 >= #1/2/09# AND Field6 <= #1/30/09#  GROUP BY Field3, Field10
    Code2. I get error message SELECT Field3, Field10, SUM(Field16) as SumofField16 FROM CustomerHistory_CP WHERE Field3 LIKE '%Search_Criteria%' AND Field6 >= #Date1# AND Field6 <= #Date2#  GROUP BY Field3, Field10

  • Group by selection

    I have a report which i am grouping by country.
    The country field appears once and the other fields appear based on country value.
    Is there a way to give users option in the crstal report to pick a group by field?
    Thanks

    You can use two detail sections.
    insert a section below the current detail.
    set up your display for your groups as you described.
    Name 1
    column1 column2 column3 Name2 and so on...
    Name2
    column1 column2 column3 Name1 and so on...
    create a parameter (String)  {?Group_Name}
    you can then suppress detail A  using      {?Group_Name} = "Name 1"
    You can suppress Detail B using              {?Group_Name} = "Name 2"
    When you run the report, it will prompt for the Parameter, if the user selects Name 1
    detail section a will be suppressed and detail section b will show, if they select Name 2
    then A will show and b will be suppressed
    hth

  • Group By Select Top 1 Rows

    Hi Guys,
    I tried Group By from Select Top 1 Records,  As below the script wasn't work.
    Please help.
    SELECT TOP 1 NR.SHGId, NR.Amount
    FROM NEW_DCB_REPORT NR
    WHERE NR.SHGId = ND.SHGId
    AND NR.ShgMemberId = ND.ShgMemberId 
    AND NR.LoanNumber = ND.LoanNumber 
    GROUP BY NR.SHGId,NR.Amount
    ORDER BY NR.LedgerNumber DESC
    SHGId
    SHGMemberId
    LoanNumber
    Amount
    Select Top 1 Row
    1028
    147852
    1
    1000
    Select Top 1 Row
    1028
    147853
    1
    2000
    Select Top 1 Row
    1028
    147854
    1
    1000
    Select Top 1 Row
    1028
    147855
    1
    1000
    5000
    I expected the results are:
    SHGId
    Amount
    1028
    5000

    Yes I did it.
    Select  SHGId,
    SUM(Amount)
    amt  FROM
    SELECT  NR.SHGId,
    NR.Amount,
    , Row_number()
    Over(partition
    by NR.SHGId,
    NR.ShgMemberId , NR.LoanNumber
    Order
    by NR.LedgerNumber
    DESC
    ) rn
    FROM NEW_DCB_REPORT NR
    JOIN
     NEW_DCB_REPORT ND
    ON
    NR.SHGId
    =
    ND.SHGId
    AND NR.ShgMemberId
    = ND.ShgMemberId
    AND NR.LoanNumber
    = ND.LoanNumber
    ) t
    Where rn=1
    GROUP
    BY  SHGId
    I just changed above the script Partition by add one more column and
    [yourNDTable]
    Should come NEW_DCB_REPORT table.
    However, It shows below the error ,. Please help.
    Invalid object name 'NEW_DCB_REPORT'.

  • Making all paths into a group without selection

    I'm working on a script that will take every pathItem in a document and put it into a group (all pathItems in the document are groupless upon opening it, so there won't be other groups already in the document).
    I have a script that creates a group, then puts the highest placed pathItem into the group. I just can't figure out how to have to grab all pathitems in the document, or loop this one action until everything is in a single group. Also the kicker is, as the title suggests this script has to work without selecting anything by hand first (in other words having to click something to select it). Now if there's was a way to select everything with a script that would be awesome.
    Here's what I have so far:
    #target Illustrator
    //based on script from Carlos Canto
    var doc = app.activeDocument
    if ( app.documents.length > 0 ) {
    doc = app.activeDocument;
    newGroupItem = doc.activeLayer.groupItems.add();
    var gi = doc.groupItems[0]; // the topmost existing group
    var all = doc.pathItems[0]; // all paths in document
    all.move (gi, ElementPlacement.PLACEATBEGINNING); // move selected path inside the group
    all.evenodd = true; // necessary to determine "insideness" or to make holes.
    I also have this that I found here on the forum
    #target Illustrator
    // GroupFromSel.jsx
    // regards pixxxelschubser
    if ( app.documents.length > 0 && app.activeDocument.selection.length > 0) {
        var aDoc = app.activeDocument;
        var Sel = aDoc.selection;
        var GroupFromSel = aDoc.groupItems.add();
        for ( i = Sel.length-1; i >= 0; i--) {
            Sel[i].moveToBeginning( GroupFromSel )
    But saddly it requires selecting so two scripts, two possible solutions. I'm just working on both until I can get one to work.
    Any ideas?

    var all = doc.pathItems[0]; // all paths in document
    that's only the top most pathItem, change that to
    var all = doc.pathItems; // all paths in document
    ...and loop thru "all" and move each inside your group
    #target Illustrator
    //based on script from Carlos Canto
    if ( app.documents.length > 0 ) {
        doc = app.activeDocument;
        var gi = doc.activeLayer.groupItems.add();
        var all = doc.pathItems; // all paths in document
        for (i=0; i<all.length; i++) {
            eachPath = all[i];
            eachPath.move (gi, ElementPlacement.PLACEATBEGINNING); // move all pathItems inside the group
    else
        alert('no documents to process');
    for this set up we will run into trouble if you have other groups with pathItems

  • Removal of Group Tree selection results in Highlighting

    Hello all,
    I'm using CR for VS2010 SP1
    I was just wondering how I can remove the highlighting when I select a Group Tree item.
    For example, when I select an item in the Group Tree, the report returns with the selected item "highlighted".
    Is there a way to remove the highlight?
    Thanks for any help with this.
    JohnMc
    Edited by: JohnMc3 on Jun 1, 2011 3:49 PM

    Hi John,
    Sorry I got ahead of myself. What I was suggesting is if you click anywhere else in the viewer the highlight is removed. I was looking/thinking if an event could be triggered to set focus somewhere else the highlight would be removed.
    Other than that I don't see any other way. Odd your users don't want to see what they clicked on... What ever you are used to I guess....
    No option directly. If you want add your request to Idea Place and the PM's will look into it.
    Just thought of something else, Hide the Group Tree and create your own, then you have full control over what it looks like. Lots of work for a minor appearance preference though...
    Thanks
    Don
    Edited by: Don Williams on Jun 2, 2011 6:42 AM

Maybe you are looking for

  • System (ntoskrnl.exe) high cpu usage in Windows 8.1

    Sir/Mam, I'm having this issue since last week, when i checked it is the "system" (ntoskrnl.exe) file which is using upto 18-24% of my CPU and causing all other applications to stutter for a second (incluuding Media player, mouse pointer, everything)

  • Delete archived projects in Project Online

    Hi, Does anyone know why the Delete archived projects is available in Delete Enterprise Objects in Project Online? As far as I know the backup functionality that exist in Project Server on premise is not present in Project Online, or have I missed so

  • FIELD SYMBOL  : - Get Data from Another program

    Hi Gurus, I have a Z program - ZPROG1. I need to get the value of a variable V_VAR1 from program RV63A712 which is a routine. How can i get the value of V_VAR1 from RV63A712 into my program ZPROG1. using field symbol . The main program of RV63A712 is

  • Modulo-2 /exclusive OR binary division

    I need to do binary division in Java. Basically, I have a data file that has a binary string in it, and I need to divide another binary string into it to perform a CRC check. I've been looking at a couple of operators, hoping that I can just supply t

  • RAM trouble (4MEM/9/40000000: 0xb865f398)

    I have an iMac 21.5" (mid 2010). Off and on over the past year I have had random shut downs "because of an unexpected error". Recently it has gotten much worse. Firefox has crashed a lot, or any other app that is more intensive. I reformatted my iMac