Get several lines with the request - please help

Hello

I have query that gives me the output below.
select distinct a.*,cu1.usr_key,cu1.first_nm,cu1.last_nm
from(
      select ng.grp_key, ng.grp_nm , gt.grp_typ_nm, stts.nm as grp_sts, ng.expiry_date, ng.updt_dttm, stts.stts_key
      from new_group ng, user_group ug, group_type gt, status stts
      where ug.grp_key = ng.grp_key and ng.grp_typ_key = gt.grp_typ_key and 
      ng.stts_key = stts.stts_key and
      ug.usr_grp_rl_typ_key = 1 and 
      lower(ng.grp_nm) like 'test foe%'
      union 
      select ng.grp_key, ng.grp_nm , gt.grp_typ_nm, sts.nm as grp_sts, ng.expiry_date, ng.updt_dttm, sts.stts_key
      from new_group ng, group_type gt, status sts
      where ng.grp_typ_key = gt.grp_typ_key and ng.stts_key = sts.stts_key and 
      lower(ng.grp_nm) like 'test foe%')a, common_user cu1, user_group ug1
where cu1.stts_key = a.stts_key and cu1.usr_key = ug1.usr_key and ug1.usr_grp_rl_typ_key = 1 and ug1.grp_key(+) = a.grp_key;
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 09.38.34 29742 Sam Saed
18345 enemy test remove Group organization DELETED 9 February 12 09.38.34 AM 3 29643 dummyName514 dummy
18345 enemy test remove Group organization DELETED February 9, 12 09.38.34 AM 3 28917 TestMObileUser Gujral
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 27284 Rocky jegou 09.38.34
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28920 Bhavani Gujral 09.38.34
18345 enemy test remove Group organization DELETED 9 February 12 09.38.34 AM 3 29645 dummyFName516 dummy
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 27316 Karthik Gilani 09.38.34
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28147 Bowl David Mathews 09.38.34
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 09.38.34 29731 Sam Saed
18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28919 Madhu mango 09.38.34

For a group 18345, there are 10 users and this is the reason why I get a multiple user records.

I can't avoid these last three columns, because I have to show these values in the application.

In my opinion, the UNION is at the origin of the problem. Can I replace the UNION here? Please share your ideas on this.

Thank you
Rambeau

Published by: ouali on February 9, 2012 22:35

Hello

because I have to show these values in the application.

What is your problem then? If you simply issue a SELECT statement to application code or send the data back to REF CURSOR, it will be quite OK to have several lines. That's what the SELECT statements are for: to return sets of results with several lines.
So, could not explain your problem more in detail please? If you get an error somewhere, provide the code causing the error and the error message (it is probably ORA-001422 exact extraction returns several lines somewhere in PL: / SQL, isn't it? then post here).

In my opinion, the UNION is at the origin of the problem. Can I replace the UNION here? Please share your ideas on this.

Us don't know not the answer to this question, because no one here knows your needs (what you need).

Tags: Database

Similar Questions

  • How to get several lines with series C 9501 running with SoftMotion on a cRIO 9074 modules?

    Hello

    I'll have set up many of the variable axes defined by the user with two modules in series c 9501 running on a Compact RIO 9074 stepper.

    I started with the example of "9501 Stepper Drive (Getting Started)", which worked fine with a simple variable user defined axis (Test-interactive panel, SoftMotion functionality on the host).

    I need to control 2 axes and I could not find any help on adding a second axis, so I came up with the following approach. My approach was to expand the FPGA VI in a way to add features to the second variable axis defined by the user, so I did the following steps:

    1. Add a new variable axis defined by the user.

    2. Add the variables defined by the same user as the first axis had during the second axis.

    3. a copy of global variables that the first axis necessary to use independent global variables for the second axis.

    4. develop the FPGA VI while-loops with the circuits of same for axis 2 and ensure that the circuits for axis 2 use their own global variables, the right modules, their user-defined variables and change the index of the axis from 0 to 1 (don't know exactly how the axis index is defined).

    4B. I also tried to copy all the loops for each axis had their independent loops. Then adapt the global variables, modules, the variables defined by the user, index of the axis.

    The FPGA VI compiles and runs, but when I get to the Panel of interactive Test for both axes and try to enable them, it throws an error-70228 (Controller unable to confirm that the drive is enabled).

    I'm doing something wrong? Is it perhaps a simpler way to get two 9501 modules working with SoftMotion?

    I can provide my two examples of published projects (same loop loop / independent), if necessary.

    LabVIEW installation:

    LabVIEW 2014f1

    Module FPGA 2014

    In time real Module 2014

    SoftMotion 2014f1

    cRIO-drivers 2014f1

    Xilinx tools 14.7 2014

    I hope someone can help me, thanks in advance.

    I managed to make it work.

    I was missing that a Subvi in the FPGA VI engine control missed their axis index 0. I couldn't even they worked with an index of the axis until I looked into the block diagram of those.

    So what happened was that my routines on the second axis disabled immediately the first axis because of bad axis index.

    Definition of the index of 0 and 1 axis (axes 1 and 2) for each unique Subvi of motor control was what was missing.

  • I have several problems with my computer Please HELP

    Hi Megan,

    While the path that you have installed Vista out of the ordinary, he has obviously worked for you. It may be that some Dell installation media is linked to the Dell motherboards, but my experience is that this is certainly not true for all Dell Media. There are companies out there that brand sale Dell Support oem installation and advertising that it can be installed on any PC, not only the Dells. My experience is that these claims are valid.

    When you re-install on your replacement hard drive, just keep in mind that these media are unlikely to install drivers that are needed for your hardware works correctly. These drivers must be on a CD supplied with the mother/PC card and it would probably be the simplest method. If you do not have this CD, you will need to get from website of maufacturer of the motherboard and install them...

    http://UK.ASUS.com/motherboards/AMD_AM2/M2AVM/#download

    Enter your 32-bit Vista or Vista 64-bit OS as the case may be.

    Tricky


  • Can not understand this issue with the layout - please help

    Hello

    I have a problem with the page layout in the header of my site portion.  I would like the Facebook icon, the text "Write us", "Reservations welcome!" text and phone number all rinse just like on the picture below.

    whatiwant.jpg

    No matter what I do the text "Write to us" is not the right move.

    whatigot.jpg

    I don't know what I'm not doing correctly so I ask some fresh eyes to take a look at the code CSS (here).  The tags I'm tweaking are:

    #et-social-icons {float: right; margin: 20px 0px 0px 0px ;}}

    #et-social-icons one {make-size: 14px; color: #581b1a ;}}

    #email - us {margin: 60px banner 0px 0px 0px; padding-left: 40px ;}}

    #email - we a {make-size: 14px; color: #581b1a ;}}

    #reservations p {margin: 0px 0px 30px 0px; do-size: 14px; police-weight: 800; color: #581b1a ;}}

    The header html/php code is here:http://codeviewer.org/view/code:383 has

    Try the css below. I'm not sure where you want to put as there seems to be a lot of css files associated with the page. We really need to finish the css cascade.

    #email - us {}

    text-align: right;

    }

    {#et-social-icons}

    text-align: right;

    padding: 0;

    }

    #reservations p {}

    text-align: right;

    margin: 0;

    padding: 0;

    }

  • Cannot return number of orders by the hour in the request please help

    Here's the query I run currently. It allows you to select the Date and time on a form and returns a total number of commands between the Date and the selected hours. What I need to break further down, at the time, the number of orders. So it should take the 05:00 06/08/2012-06/08/2012 11:00 show me the number of orders at the time. Where currently it totals orders for the chosen duration

    This query currently works but does not divide it by time unless I select the 05:00 06/08/2012-06/08/2012 06:00 and then repeat for each hour. Which is very time consuming.

    Any help would be amazing as I have been at it for weeks.

    SELECT
    ENTITIES OF ROUND (SUM (COUNTWEIGHT)), AREA OF Z.NAME
    Of
    PPSDBA. ARCH_RX RX,
    PPSDBA. ARCH_VIAL_CONTENTS STROKE,
    PPSDBA. ZONE Z,
    (SELECT 1 / COUNT (RX.) TOTE_ORDER_ID COUNTWEIGHT), RX. TOTE_ORDER_ID ORDER NO.
    OF PPSDBA. ARCH_RX RX,
    PPSDBA. ARCH_VIAL_CONTENTS STROKE,
    PPSDBA. ARCH_VIAL AV
    WHERE AV RX_ID = RX. RX_ID AND
    STROKE. VIAL_ID = BC VIAL_ID AND
    RX. FILLED_TYPE NOT IN (19.20) and
    STROKE. FILL_DATE BETWEEN TO_DATE('#DATE_FROM#', 'MM/DD/YYYY hh24:mi') AND TO_DATE (' #DATE_TO # "," MM/DD/YYYY HH24 ')
    RX GROUP. SUBQUERY TOTE_ORDER_ID),
    PPSDBA. ARCH_VIAL AV
    WHERE
    SUBQUERY. ORDERID = RX. TOTE_ORDER_ID AND
    AV. RX_ID = RX. RX_ID AND
    RX. FILLED_TYPE = Z.ZONE_ID AND
    STROKE. VIAL_ID = BC VIAL_ID AND
    RX. FILLED_TYPE NOT IN (19.20) and
    STROKE. FILL_DATE BETWEEN TO_DATE('#DATE_FROM#', 'MM/DD/YYYY hh24:mi') AND TO_DATE (' #DATE_TO # "," MM/DD/YYYY HH24 ')
    Z.NAME GROUP

    This will probably work. I can't test it because I don't have the tables:

    SELECT
    TRUNC (STROKE. FILL_DATE, 'HH') FILL_DATE_HOUR,.
    ENTITIES OF ROUND (SUM (COUNTWEIGHT)), AREA OF Z.NAME
    Of
    PPSDBA. ARCH_RX RX,
    PPSDBA. ARCH_VIAL_CONTENTS STROKE,
    PPSDBA. ZONE Z,
    (SELECT 1 / COUNT (RX.) TOTE_ORDER_ID COUNTWEIGHT), RX. TOTE_ORDER_ID ORDER NO.
    OF PPSDBA. ARCH_RX RX,
    PPSDBA. ARCH_VIAL_CONTENTS STROKE,
    PPSDBA. ARCH_VIAL AV
    WHERE AV RX_ID = RX. RX_ID AND
    STROKE. VIAL_ID = BC VIAL_ID AND
    RX. FILLED_TYPE NOT IN (19.20) and
    STROKE. FILL_DATE BETWEEN TO_DATE('#DATE_FROM#', 'MM/DD/YYYY hh24:mi') AND TO_DATE (' #DATE_TO # "," MM/DD/YYYY HH24 ')
    RX GROUP. SUBQUERY TOTE_ORDER_ID),
    PPSDBA. ARCH_VIAL AV
    WHERE
    SUBQUERY. ORDERID = RX. TOTE_ORDER_ID AND
    AV. RX_ID = RX. RX_ID AND
    RX. FILLED_TYPE = Z.ZONE_ID AND
    STROKE. VIAL_ID = BC VIAL_ID AND
    RX. FILLED_TYPE NOT IN (19.20) and
    STROKE. FILL_DATE BETWEEN TO_DATE('#DATE_FROM#', 'MM/DD/YYYY hh24:mi') AND TO_DATE (' #DATE_TO # "," MM/DD/YYYY HH24 ')
    Z.NAME GROUP, , TRUNC (STROKE. FILL_DATE, 'HH')

  • Hi, I just got a second generation ipod nano, and whenever I have unplug the charger a line crosses the screen. Help, please

    Hi, I just bought a used second generation ipod nano and whenever I have unplug the charger a line crosses the screen and I can't do anything with the ipod. Help, please.

    When you do a Reset (reboot) on the iPod

    Learn how to reset your iPod - Apple Support  (see iPod with a click wheel)

    do you see this line on the screen when the Apple logo?  If you do, it is probably a hardware problem.  If the line is not there at the start, but returns after the iPod starts, you can do a restore of the iPod using iTunes.  This d erases the IPO, reinstall its software and sets it to the default settings.

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

    If the problem persists after the restore, the cause is likely to be hardware problem.

  • When I print I get several pages with a feel a little on all the pages I want to print

    When I print, I get several pages with what I print with a few lines on each page until what I printed is finished.

    mamorse,

    Thanks for the additional info. Lets try to download and execute printing and scanning doctor found here. It may fix a lot on its own, but otherwise it will give us a better idea of what is happening. The weakness of the signal is not likely the culprit (because he worked for a long time) but we can try to change that if other steps fail.

  • I use xport 360 and I can't put my save game back on the program profile it shows a circle with a cross please help me

    I use xport 360 and I can't put my save game back on the program profile it shows a circle with a cross please help me

    Hello

    If you try to recover the gamer tag, then I suggest you follow the steps from the link below: http://support.xbox.com/en-us/pages/xbox-live/how-to/xbox-live-account-management/gamer-profile.aspx

    If this does not work then I recommend you to ask your question here: http://forums.xbox.com/xbox_forums/xbox_support/default.aspx

    Hope this information is useful.

  • I am a beginner using photoshop and I hid the layer tool and can not find a way to get it back... Please help

    I am a beginner using photoshop and I hid the layer tool and can not find a way to get it back... Please help

  • Am increasing the drive C for XP VM, get error while doing below it please help me.

    error.JPG

    Am increasing the drive C for XP VM, get error while doing below it please help me.

    In this case, the reason is the virtual IDE drive. Increasing the disks IDE is not possible the vSphere client.

    Take a look at KB VMware: conversion of a virtual IDE disk to a virtual SCSI disk to see if this is an option for you.

    André

  • HP Officejet Pro L7590 all-in: HP officejet Pro L7590 prints 1/2 of the line of text on several lines of the document

    I received an email for the diagnosis of the printer and I was prompted to install the updated drivers and I did it and now when I print the test page, I get several lines of text that displays only the top or the bottom 1/2 letters across the page, I printed a self-test diagnostic Page and printed everything in pink , but it does not print 1/2 letters across the page as a test page, then I printed a page of print quality and it did the same as the test page and it does the same thing as the test page, then I tried calibrate spacing of thought which may fix the problem but does not , what can I do?

    Irven

    Hi mmcmret8,

    Thank you for your answer! It is possible that the print heads may need to be changed, at this point, I would recommend to you please call our hotline at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Best regards!

  • Effective rate using ni6143 with the request based on aiex2.cpp method

    Dear engineers experienced,

    I had a problem with the request method based on the file "aiex2.cpp", available on the site by using ni6143. It comes to the actual sampling rate. On the datasheet, it is said that the ni6143 could have the ability to data acquisition with speed of 250 kHz per channel, which means that each data could be acquired in 4th-6 second. So here's my question: if I use all 8 channels (each to 250 kHz), this means that I have to use 8 [channels] * 4th-6 [seconds] = [seconds] to get a data set (one for each channel), 32nd-6 or I can use only 4-6 [seconds] to get? I use the method of application based on aiex2.cpp for the experience of the trial. Inorder to check exactly what is the sampling rate, I/o digital set up a signal in the maximum power before gain on demand and set low during data acquisition is complete. It shows the oscillograph than the actual time for the acquisition of a set of data (one for each channel) when I use 8 channels (each to 250 kHz) is about 32-6 [seconds], which means that the device acquires data by a channel channel, not at the same time. I want to know if there is any setting that I have to settle with the registers, or request method could not acquire data with 8 channels simultaneously. My code is exactly the same with the file "aiex2.cpp".

    Thanks for help.

    Hello Licry,

    Yes, the example only shows how to acquire a number fixed samples.  Among the function calls that implements the acquisition will allow you to make the material constantly acquire...

    aiNumberOfSamples (theSTC, numberOfSamples, kFalse); for finite, false for continuous

    If you can set it to kTrue to acquire continuous.  So that the task to continue to work, your application must be able to access the FIFO data fast enough so that it does not overflow.

    Second, every continuous acquisition must end someday.  When your loop has acquired all data affecting the application, he must issue commands to stop the acquisition.  The manual of the STC in detail the steps that can be taken to stop a continuous acquisition.

    http://www.NI.com/PDF/manuals/340934b.PDF (see section 2.4.3.3)

    Steven T.

  • I get system off with the code 68072590 after 3 failed attempts

    I get system off with the code 68072590 after 3 failed attempts

    AM trying.

    77950516

    Use this code to go into the BIOS.

    Disable all passwords that are enabled.

    IF demand for CURRENT password using this code.

    REQUEST NEW password just press ENTER.

    If asked to hit just to CHECK password to enter.

    Save and exit.

    REO

    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.

  • SEVERAL problems with the new X 34

    So, I have been active during the overclock.net forums concerning the many problems I am having with my X 34.

    Long story short, I'm back this thing to Newegg and waiting for another delivery. But I thought I'd come at least here because it has high liklihood to return to anyone who cares to Acer. I called their tech support to let them know about the issues, but when the old Indian robot for 2 years at the other end kept referring to as resolution of refresh rate, I decided that I couldn't take more.

    So I took delivery of the monitor yesterday and he initially worked well... but the longer he stayed, the more problems, he has developed.

    My system is one I built a year or two ago and works perfectly with my Dell 3008WFP. Video card is a brand new MSI 980 Ti Lightning. Operating system is Windows 10 x 64. Is a Corsair 750W POWER supply. 16 GB of DDR3 RAM.

    I even made a COMPLETELY new install of Windows 10 on this computer to try to resolve these problems. Did not work. I have disconnected/reconnected everything inside my computer, including RAM and GPU. Did not work.

    And Yes, G-sync is enabled in the NVCP. And Yes, I manually set the refresh rate in the NVCP in correlation with the manual settings on the monitor.

    Problem no. 1: Menu recording does not settings

    -Don't know what the problem is here. But for about 3 hours last night, my monitor would not save settings for serger refresh rate. I would go on the menu... allow the serger... Set it to 100 Hz... Select "Apply and restart. Then (here's the interesting thing I think in hindsight), the screen would flash many colors several times and restart. I assumed that flashing color was normal... but it was never the Predator Logo when it has been reset. The office is finally pointing upwards and I could choose 100 Hz in my NVCP... but when you returned from the settings menu, Overclock was Off back with the default refresh rate. I have nothing would fix it with the reset of the monitor and unplug. Later... I have unplugeed the monitor for 30 minutes and when I plugged it back in, it would save my overclock settings now. It is interesting, but now, when I selected "Apply and reset", he would show the Predator logo when restarting... this logo did not appear before.

    Problem #2: Flashing screen

    -See a video of this question HERE

    -This developed before my eyes. After the initial installation of the monitor, it worked fine. Without no flicker, no problems. But as I was sitting at the dinner table last night, I started to see the monitor flashing intermittently in the other room. I look at the screen, he flickered about 4 or 5 times per minute. For the next hour, he progressed to 30 - 40 times per minute. And subsequently developed in constant blinking. BUT this flicker only happens when I go to the Office at 100 Hz. It happens sometimes in games, but not constant.

    I first thought that I had a bad cable of DP since I used one from Amazon, if I swapped it for the Acer cable included. Nope... same problem. I even inserted my previous EVGA 780 TI... but the flicker that happens too.

    Then, I thought it was a driver problem, I did a clean install of the nVdiia previous drivers. Nope. Then a cleaning installed latest drivers from nVidia WHQL. Nope.

    Then I saw here that you can download the drivers for the monitor directly from Acer. So, I did a guy like an unsigned driver installation. Nope.

    After all this, the problem persists.

    Strange thing about this one is that there was when I first got the monitor but got progressively worse since I got it.

    Another weird thing is that if I have a window open, then it isn't twinkle... reduce the window, and he comes back. It's actually what made me think, it was a driver issue, but as you can see above, I think that I have ruled that that fully.

    Also, if I set my refresh rate to 95Hz or below, the problem occurs. (This is actually how I currently work).

    -UPDATE: the issue has actually started just after executing i1Profiler to calibrate the screen several times back to back. I can't imagine how, but could the rapid exchange of multiple colors full screen damaged electronics somehow? Or is it just a weird coincidence?

    -UPDATED #2: it was suggested that ADC can cause the problem as it caused problems with the previous Acer monitors. So I completely deleted i1Profiler and reset my default .icc profile. I also think that I figured out how to do a monitor factory reset - if you hold the buttons first and fifth, restarting the screen and all the default settings. in any case, does too and the blinking persists...

    #3 problem: Backlight horrible bleeding

    I have to type anything here? Leave some pictures to speak for themselves...

    Trouble #4: Parts of the screen does not not on

    It has been described elsewhere, so I won't detail it here. But yes, I have the same problem. Here is a representative of my monitor picture when the issue arose.

    Overall, I am extremely disappointed, although I can't say I'm surprised. I mean, we deal with Acer here guys... Not exactly known for the high-end products. You can put the red lipstick on a pig...

    So is there more any idea or suggestion out there?

    Until then... I'll wait for my new X 34 excerpt here from Newegg to see if I won the lottery of Acer he...

    I created this post to be a "accepted solution" to this thread with the purpose to help other users who need to find the answers. This should help to find this information faster than to have to go almost 800 posts to find pieces of information.

    Wake up from sleep (backlight) - initial response and follow-up

    Problems with Overclocking at 100 hz - original response

    Coil - Whine Original response

    Color banding - users in Australia reported the problem. The teams in the region to THE have been notified and a firmware is available.

    -Scanning lines Original response

    Thank you
    Cory

  • "Unknown popup window titled" information "appears with the message please wait a few moments.

    Original title: window unknown popup

    I'm under THAT XP SP 3 fully updated; Mozilla Firefox version 7.0.1 - I keep getting a small pop up window titled 'Information' with the message: Please wait a few moments. It has a small clock on the left side of the field. Only momentary and random. I ran Mcafee virus scan and webroot spyware with no prob on either. Is this some sort of spyware or what?

    Hello

    1. find this jump up while working on Mozilla Firefox?

    I suggest that you initialize in a clean boot state and check if the problem persists.

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note:

    How to configure Windows to use a Normal startup state

    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start and then click Run.

    (b) type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    (c) click on the general tab, click Normal Startup - load all services and device drivers and then click OK.

    (d) when you are prompted, click on restart to restart the computer.

Maybe you are looking for