How to select the same status in a group?

Hi all

How pulling the waiting for order status all the id, based on the group.

For example,.

ID of the command name status

AAA 1 pending

AAA 2 open

AAA 3 open

4 AAA approved

AAA 5 approved

BBB 1 pending

BBB 2 pending

BBB 3 pending

1 approved CCC

CCC 2 pending

CCC 3 pending

DDD 1 pending

DDD 2 pending

I need output like this:

ID of the command name status

BBB 1 pending

BBB 2 pending

BBB 3 pending

DDD 1 pending

DDD 2 pending

Thank you

Pradeep D.

Seems (at least to me) it must be that the status "pending".

with

commands like

(select name, 1 order_id ' AAA', 'pending' status of Union double all the)

Select 'AAA', 2, 'Open' to all the double union

Select 'AAA', 3, 'Open' to all the double union

Select 'AAA', 4, 'approved' of all the double union

Select 'AAA', 5, 'approved' of all the double union

Select 'BBB', 1, 'pending' Union double all the

Select 'BBB', 2, 'pending' Union double all the

Select 'BBB', 3, 'pending' Union double all the

Select 'CCC', 1, 'approved' of all the double union

Select 'CCC', 2, 'pending' Union double all the

Select 'CCC', 3, 'pending' Union double all the

Select 'DDD', 1, 'pending' Union double all the

Select 'DDD', 2, 'pending' double

)

SELECT name, order_id, status

(select name, order_id, status, count (distinct status) on cd (partition by name)

orders

)

When status = 'pending '.

and cd = 1

NAME ORDER_ID STATUS
BBB 1 Pending
BBB 2 Pending
BBB 3 Pending
DDD 1 Pending
DDD 2 Pending

Concerning

Etbin

Tags: Database

Similar Questions

  • How to select the same forms of color in the adobe flash program?

    How to select the same forms of color in the adobe flash program? for example, we assume that 10 forms of rectangle. 3 of them are red and others are green. I want to use only one method or click to select 3 of them. Please help me

    Thanks kunter

    You can use Ctrl + F.

  • How to select the same fonts and apply auto kerning?

    How to select all the blocks of text with the same font (for example "BoldItNewCenturySchlbk-Roman") and apply the automatic kerning?

    Thank you.

    For all documents open:

    for (i = 0; i< app.documents.length;="" i++)="">

    var targetDocument = app.documents [i];

    activeDocument = targetDocument;

    var app.activeDocument = docRef;

    for (var w = 0; o)< docref.textframes.length;="" w++)="">

    var textRef = docRef.textFrames [w];

    If (textRef.textRange.characterAttributes.textFont is {textFonts.getByName('NewCenturySchlbk-Italic')})

    textRef.textRange.characterAttributes.kerningMethod = AutoKernType.AUTO;

    }

    }

    Redraw();

    }

  • How to repeat the same line more than once in the report 10g

    How to repeat the same line more than once in the report 10g

    If I print the barcode more than once
    in the report;

    Published by: user11106555 on May 9, 2009 05:50

    OK, thought it was just a recording, then try:

    SELECT COL
      FROM TABLE,
           (SELECT 1
              FROM DUAL
             CONNECT BY ROWNUM
    
  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • Printer all in one HP3520 - how to select the wireless network and enter the WEP key?

    According to print my wireless network is detected.

    How to connect the! @# % printer $ fo the wireless network and enter the WEP key?

    Instructions on the HP site tell me to selet NETWORK on the printer control panel.  Well, there's a way to select the NETWORK from the control panel.  It is not an option for him.

    I downnloaded and installed the latest drivers.

    I have restored the default settings.

    How to select the wireless network and enter the WEP key?

    All of HP's instructions seem to be for a newer printer with a touchscreen.

    I want that the printer is connected to my main computer via the USB port.  I want to be able to print wireless phones and tablets.

    My 3520 is not a 'touch Screen' and it has wifi.

    However, the following work:

    Try to open the HP Deskjet 3520 icon, open the utilities tab, click on convert USB wireless, by following the steps on the screen.

    This leads me to believe that ONLY the wireless doesn't work.  I know now that the part of the sentence "Convert USB to wireless connection" is supposed to mean "works like USB and wireless.

    Thank you for your help

  • How to map the same tag of the element with a different value in BI Publisher rtf model.

    Hello

    I have an xml file with the same name in the < tag > element and I do not know how to associate the same < tag > element to different string in the document rtf template attribute.

    For example: "' Eswitch <number > is repeated in this xml file, when I am mapping this element to the document rtf with a different string, I have same value 'D00002 ' . I should get values D00002 and DMR00002.

    < document >

    < TitleBlock >

    < number > D00002 < / number >

    < itemType > Document < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    < description > gtedgg < / description >

    < shippableItem > n < / shippableItem > < / cartridge > < / Document >

    < DMR >

    < TitleBlock >

    < number > DMR00002 < / number >

    < itemType > DMR < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    test nomenclature model bom1 < description > < / description >

    < POS > < value > Test < / value > < / POS >

    < shippableItem > n < / shippableItem > < / cartridge > < / DMR >

    < / AgileData >

    I followed steps below for map document model rtf with the same tag xml with a different value.

    1. install Office word 2013.

    2 BI Publisher for desktop software installed. It will add a BI Publisher plugin to the word document.

    3. with the help of desktop publisher BI, created a model of document rtf file.

    4 imported the document rtf template example xml file.

    The data is loaded successfully.

    5 tires model rtf field symbol to map the tags to xml to rtf document attributes element.

    7 saved the document in PDF format.


    Thank you

    Please mark it correct so that it is useful for others to find the solution to a similar request.

  • How to select the pieces of my image in black and white?

    How to select the pieces of my image in black and white? FOW example letter J or the circle or the two together?

    jaguar_growler_blur best8.png

    It's actually pretty easy, but I have to assume that you know a few basics in Photoshop

    (1) open your existing image

    (2) double click on the layer and the 'layer style' appears. In the mix if area set the sliders so the whites in the image disappears

    You will be left with just the black elements in design

    (3) duplicate layers

    and merge them together

    to give a standard layer

    (4) ctrl or cmd click on the layer to select and create a layer mask

    (5) you now have a mask of the image. Duplicate the layer, click alt or option, click on the layer mask to call

    (6) the blacks and the whites are not completely black and white for the use of levels to adapt to the absolutes

    (7) now you have to decide what you want to select. In this case, I chose the lettering and simply covered everything else to the top with black. You do this by lasso selection and fill and items when it's delicate brush just the details with a black brush "hard." .

    (8) at this stage, you can do what you want you have a layer mask. So you can color the text for example

    or place in a background color and apply a layer as Beveling effect

    Hope that makes some sense. It is much easier to do than to describe.

  • How to make the same effect of scrolling like Tumblr (beginning Web page) with Adobe Muse?

    How to make the same effect of scrolling like Tumblr (beginning Web page) with Adobe Muse?

    I used Adobe Muse since the day it first came out, I played with the timings and effects of scrolling a lot. Tumblr landing page scrolling is very nice, I can see why you want a similar effect. Something similar could be created using the scrolling in AdobeMuse effects, especially if you familiarize yourself with the scrolling of the transparency. Start with a color block simple try it scroll up to double speed, then add items to the next page with the scrolling transparencies. Best practical work, use layers to do this, it makes things so much easier when you need to edit the page.

    Once you have played with the effects of scroll, you will begin to note how the elements of the Tumblr page can be re-created. This will be a sharp learning curve, but very doable in Muse for a similar effect. You will have a number of layers with page elements and new blocks of color on each layer when your done, fine tweaking the movement of scrolling and timings will make perfect. Good luck.

    If not, try adding an animation on board, you can create a Web page in Adobe Edge, but again... probably much more involved learning with this option.

  • How to use the same point of view as read only in the ADF and editable

    Hello

    How to use the same point of view as read only in the ADF and editable? How can we succeed in TF?

    -James

    Hello

    Steven Davelaar wrote a presentation on this 'building highly reusable Taskflows.

    From slide 14, that's where your use case comes into play

    Frank

  • How to select the Type of industry 8.3 Professional P6

    Hi all

    According to the document to change the type of industry for 8.3 Professional P6, I had to go to P6, Application settings, general link.

    But in the P6 Web client to administrator > Application Configuration > General there is no option is available for the type of industry.

    Let me know, how to select the type of industry?

    You can see the OPINION score "How to change the Type of industry P6 P6 PPM (Professional), P6 EPPM E8.2 and later versions (Doc ID 1386047.1)".

    Also can you paste a screenshot here.

  • Impossible to select the same graphic style on glued eps

    I opened an eps.

    Copy the whole graph.

    Open the correct model and paste the chart copied.

    The template styles to graphics with the same background and outline (no other attributes don't exist) pasted chart.

    However, I can not select items from pasted chart based on the pasted graphic graphic even if Style contains elements with the same stroke and fill.

    I can't select the same outline and complete either.

    I checked the Document Color Mode and made sure it was RGB color.

    However, when I select the item and double-click on the initial window color picker shows new 1100 color so I suspect even if the same style Illustrator is affecting the color of the element and running like new.

    This selection process is a step in an action to apply styles and works - so this isn't.

    Probably something simple changed the settings, but appreciate any suggestions as to where the issue could be found.

    It's old CS2 on Mac PPC G5 pays for itself always perform the simple processing of the output files.

    All advice appreciated as many hours trying to figure this out.

    Thank you

    Michael

    Awesome! Works a treat. I have to just make sure that Document Color Mode is CMYK and color as you say Graphic Styles are defined to same in the imported graphic. I thought I was smart by setting Document Mode of color RGB and graphic Style as well.

    Thank you for identifying and really, really appreciate your time and knowledge.

    Kind regards

    Michael Gilbert

  • How to install the same copy of creative suite on the second computer?

    Basically, I'm on a Macbook Pro and upgraded my hard drive. A

    After that I got the data using time machine, I was unable to access my CS6 applications, which all became the trial version. So I would like to know how to install the same copy of creative suite to the new disk.

    Transfer usually doesn't work - you must install using installation files, in the same way that you originally installed the programs.

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

  • How to select the path to a file icon button to a table?

    I have a SYSTEM_PATHS table name. All physical access paths as 'where the forms of execution are located' or 'where performance reports are located' are stored in its ranks for example (C:\HRMS\FORMS\)
    I memorized the path of the icon files (.ico) inside. The forms of execution can take the path of the icons for the buttons of this table. And access the icon of the chosen path. I use forms 6i. Normally, I put the path of the icon files in the nerve to property of the button as (C:\HRMS\ICON\). But now, here, I don't have a path but its in the column of a table. How to select the path to a file icon button to a table using forms 6i?

    Hello Gul,

    have you tried

    set_item_property('Button name',ICON_FILENAME,);
    

    Concerning
    Marcus

  • How to export the same MB size of my cr2 files in jpg or tiff files in Lr?

    How to export the same MB size of my cr2 files in jpg or tiff files in Lr?

    Let's say that my height is 22 MB, when I export the file in TIFF or jpg, although careful Iam with size of file settings, size, resolution, I can't manioukate how I want it.

    With jpg I tried everything, no matter what I do or a change in file size or meanless remains the same size - 7 mb instead of 22...

    Please advise,

    Best wishes

    T

    You should not even try to do it.

    JPG uses compression technology, so the files will have to be smaller than the original size of your RAWs. In addition, JPGs are 8-bit, while your RAWs are probably 14 bits, so the size needed to store your image will be smaller.

    Thus, there is absolutely nothing wrong with getting a 7 mb JPG of a 22 MB RAW.

Maybe you are looking for