*** I need to pull back just one record when more than one is listed.... **

I have two (or more sometimes), there is a field called POC_type and then the POC_name, the POC_Name is different, but the rest of the records are the same, I only want to pull back the first record so I onlist one POC_Type, Name, ...
Below is the code I have right nwo, but like I said it is pulling back multiples becase they have been entered into the systme twice (because of the diff POCs)...
select distinct m1.*
from  report_surv_ques_poc m1,
  (select investment_id, investment_acronym, investment_name, count(*)
  from  mv_surv_ques_poc
  where poc_type = 'Program Manager'
  and poc_status = 1
  group by investment_id, investment_acronym, investment_name
  having count(*) > 1) m2
where m1.investment_id = m2.investment_id
  and m1.poc_type = 'Program Manager'
  and m1.poc_status = 1
  --and m1.investment_id = 14003
order by m1.investment_id

Thanks...
I am using 10g.
My code is now like...
select distinct m1.*
from  report_surv_ques_poc m1,
  (select investment_id, investment_acronym, investment_name, count(*)
  from  mv_surv_ques_poc
  where poc_type = 'Program Manager'
  and poc_status = 1
  group by investment_id, investment_acronym, investment_name
  having count(*) > 1) m2
where m1.investment_id = m2.investment_id
  and m1.poc_type = 'Program Manager'
  and m1.poc_status = 1
  and m1.survey_id IN (67201, 67208)
order by m1.survey_idshould it be like:
WITH get_rows AS
   SELECT DISTICT ml.* ROW_NUMBER () OVER (ORDER BY m1.investment_id) AS rno
   FROM from  report_surv_ques_poc m1,
     (select investment_id, investment_acronym, investment_name, count(*)
        from  mv_surv_ques_poc
      where poc_type = 'Program Manager'
        and poc_status = 1
   group by investment_id, investment_acronym, investment_name
  having count(*) > 1) m2
  where m1.investment_id = m2.investment_id
  and m1.poc_type = 'Program Manager'
  and m1.poc_status = 1
) SELECT * FROM get_rows WHERE rno =1;cause that is not working ... I am sure I have something wrong....
Kipp

Similar Messages

  • I need to play back a video-recording i have taken myself and have it show the time count in seconds on the play back. Can you help?

    I need to play back a video-recording that I have taken myself and have it show the time counter in secs/minutes in the playback. Can anyone help?

    the movie editing app "Avid Studio" displays a time counter, as does the Pinnacle editing app.  Oddly enough, I movie does not.  (unless I have it somehow turned off.)

  • Can i record with more than one audio interface

    I need to record 16 tracks, I have two different audio iterface, in GarageBand i can only find one of them, if i go to prefrenses-audio, I can set any of them as my audio interface, but only one at the time.
    Any tips to how I can use bouth simultanious? Cubase, Logic mabye, GarageBand no can do? :-)

    josteinfromoslo wrote:
     can i record with more than one audio interface
    yes, create an aggregate device:
    http://www.bulletsandbones.com/GB/Tutorials.html#allaboutaggregatedevices
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    josteinfromoslo wrote:
    I need to record 16 tracks
    GB can only record 8 tracks at a time, however that is 16 channels, so with some extra effort you can get the outcome you desire, see the second tip here:
    http://www.bulletsandbones.com/GB/TricksHacks.html

  • Multiple select queries used in Excel BI report ,fetching data from Sharepoint DB(SP2010_Prod_ProjectServer) causing blockage on DB ,when more than one workbook(same copy of Excel BI Report) refreshed using Refresh All option.

    I am using mutiple select queries to fetch data from Project Server 2010 DB(its sharepoint DB) and these queries fetch data in Excel BI report by establishing connection with DB using instance name and all. I have enhance all these select queries and data
    is being fetched in secs. but when more than one copy of same Excel BI report is refreshed using 'Refresh All' option, then these select queries cause blockage on DB.
    Please let me know mitigation for this blockage issue.
    Should I use begin transaction and commit transaction statements/ shared lock statements.
    please reply

    Hi,
    run same query at the same time?

  • ITunes will not show my purchases before October 18, when I had a different username.  How do I get the older purchases (more than 5,000) listed when my password is rejected and it won't issue a new one for that username?

    iTunes will not show my purchases before October 18, when I had a different username.  How do I get the older purchases (more than 5,000) listed when my password is rejected and it won't issue a new one for that username?

    Wow that was really quick, thank you so much.  Im not sure at all which version it was because i said it was around 4 years ago he bought it.  I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names.  isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
    So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
    either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
    sarucia

  • Record enable more than 1 software instrument?

    I don't currently have Logic.I used to use it on PC(4.5)
    I was wondering if it was possible to record enable more than 1 software instrument.What I would like to do is send midi from Live to Logic via IAC bus triggering Logic synths.Basically using Logic as multitimbral tone module. I like Live for working up arrangements but would like to use Logic for mixing/editing.
    Macbook Pro 1.83   Mac OS X (10.4.6)  

    Yes, in Logic Pro 7 you can record-enable multiple software instrument tracks.
    I'm using a similar setup with IAC.
    IMPORTANT:
    If the tracks are assigned to different midi channels, make sure to
    check 'Auto Demix by channel' in File > Song Settings > Recording...
    G4/1.2GHz   Mac OS X (10.4.6)   Logic Pro & Express

  • I need to retrieve a series of very old (more than 1 year old) text messages from my iPhone 4S. Is this possible?

    I need to retrieve a series of very old (more than 1 year old) text messages from my iPhone 4S. Is this possible?

    If the text is still on the phone and wasn't deleted, I don't see why not. Probably easiest to use an app like TouchCopy (Mac and PC) or PhoneView (Mac), rather than looking through things on the phone itself.

  • Query to find records with more than 2 decimal places

    I have written the below query to find records with more than 2 decimal places, but it is returning records with decimal places 1 & 2.
    The datatype of the AMT column is NUMBER (without any precision).
    SELECT amt  FROM amount_table
    WHERE substr(amt, instr(amt, '.')) LIKE '.%'
           AND length(substr(amt, instr(amt, '.') + 1)) > 2Output:-
    AMT
    *41591.1*
    *275684.82*
    *64491.59*
    *3320.01*
    *6273.68*
    *27814.18*
    *30326.79*
    131.8413635
    162.5352898
    208.5203816
    8863.314632
    22551.27856
    74.716992
    890.0158441
    2622.299682
    831.6683841
    *1743.14*
    2328.195877
    3132.453438
    5159.827334
    3.236234727
    37.784
    Thanks

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    create table amount_table
      LINE_NUMBER        NUMBER not null,
      FEE_AMT            NUMBER not null
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60208, 41591.1);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60213, 275684.82);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60238, 64491.59);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (63026, 3320.01);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (59906, 6273.68);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (83111, 27814.18);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (83114, 30326.79);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112395, 131.8413634682);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112399, 162.5352898104);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112402, 208.5203815738);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112403, 8863.3146321954);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112406, 22551.2785551322);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112407, 74.716992);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112410, 890.015844079);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112411, 2622.2996817048);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112414, 831.6683840698);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112415, 1743.14);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112418, 2328.1958771886);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112419, 3132.4534379886);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112422, 5159.8273341686);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112423, 3.2362347266);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112426, 37.784);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112427, 198.7423503696);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112430, 0.7220848332);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112433, 12.4149375254);

  • I have been backing up my iphone for more than 12 hours for the ios 5 update!!!!!!!!!! help.!!!!!!

    i have been backing up my iphone for more than 12 hours for the ios 5 update!!!!!!!!!! help.!!!!!!

    It sounds like you're connecting to an iTunes account you've never synced with?

  • How do I bring back just one file?

    I have been using Time Machine for years. Now, I want to find just one or two photos. I think the photos are in one of the past iPhoto librarys but when I try to access the library I get a message that I cannot because it's not the current iPhoto library or something like that? Should I just restore that entire time machine set and go from there. I am only trying to bring back one or two photos.
    How do I do this?

    See the pink box in #15 of [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • [JS CS3] Need an array of paragraphs when more than one story

    Hello,
    If I have a document with only one story the following line returns an array of all the paragraphs. I can then iterate through the array to my hearts conent.
    var paraRef = app.activeDocument.stories.everyItem().paragraphs;
    However, if there is more than one story, then, according to the Data Browser, some of the object Paragraphs contain more than one paragraph and some of the object Paragraphs are invalid. The length of paraRef is correct, i.e. it equals the total number of paragraphs in the document, but each member of this array either  "bunched up" or contains nothing.
    How can I write this so that  when I have more than one story I can get an array of all the paragraphs?
    Thanks,
    Tom

    Thanks, Harbs and Dave!
    Before I saw your answers I came up with a (longer) solution:
    var storyRef = app.activeDocument.stories;
    var arrStories = [];
    for(var j = 0; storyRef.length > j; j++){
        arrStories.push(storyRef[j])
        }//end for
    var arrParas2 = [];
    for(var x = 0; arrStories.length > x; x++){
        for(var y = 0; arrStories[x].paragraphs.length > y; y++){
            arrParas2.push(arrStories[x].paragraphs[y]);
            }//end for y
        }//end for x
    But I am curious about something. Your solution and my solution both result in an array of all paragraphs in the document but the data browser shows these arrays in different ways. I am wondering how to intrepret them.
    Your solution does not show the indexed paragraphs, mine does. See the images below.
    Your solution:
    My solution:

  • HT4623 I can't download iOS 7 I just get a message saying I need at least 3.4gb space, I have more than that.

    I can't download ios7 I have a message under the software update saying I need at least 3.4gb of space, I have more than that!

    Hey there,
    Thank you for using Apple Support Communities.
    If the usage confirms that you have more than 3.4 GB available:
    From: iPhone, iPad, and iPod: Understanding capacity
              http://support.apple.com/kb/ht1867
    Then I would restart the phone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, I would try updating through iTunes instead:
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    Update your device using iTunes
    Ensure that you're using the latest version of iTunes.
    Connect your device to your computer using the included USB cable.
    After iTunes opens, select your device when it appears in iTunes under Devices.
    Click "Check for Update" in the Summary pane to check for available updates.
    If an update is available, iTunes prompts you to download and install the update. Do not disconnect your device until the update has finished.
    Regards,
    Sterling

  • Use of layout when more than one parameter - Error Missing Parameter Values

    Hi,
    Is it possible to use a crystal report which has more than one parameter as the layout for the bill of materials report.
    I have 3 parameters
           1. DocKey@       The Bill of Materials to be printed
           2. Number of levels to be printed
           3. type of levels to print.
    When I try to print it gives me the error Missing Parameter Values.
    I have tried changing the DocKey@ to CodeKey@ but the same error.
    Does anyone now where to find a list of these tokens?
    Thanks
    Chris

    I looked at the crystal report conversion to try to find what parameters it used and found none.
    I have managed to create and use a crystal report to replace the production order using DocKey@ as the parameter.  This works within SAP.  However I have converted the system production order to crystal reports and from the converted report I cannot see any parameters at all.
    How and where can you find out what paramters you need to use to replace any PLD report?  Several reports have multiple selection criteria before the report prints.  How can you find out what their tokens are called?  I am starting to pull my hair out.  I am getting great help from this forum, but do you know any documentation which actually explains this area.
    Thanks
    Chris

  • Boris 3D titles disappear when more than one font/size used

    I've had a LOT of two-line supers created in Boris 3D (the first and second line are either different fonts or two different sizes of the same font) go invisible without any reasonable explanation.
    This has happened on 3 or 4 different Macs of various configurations, running both FCP6/Leopard and FCP7/Snow Leopard. It's not limited to just one typeface (which is what I thought at first)... it even happens with Mac basic system fonts.
    What happens is: I or another editor will create the supers...everything appears fine. They render fine. But if the project moves from one edit suite to another (running the same version of FCP), any unrendered supers become invisible. Clips are on the timeline, but will not display on-screen. Even retyping or re-rendering them doesn't make them visible... the only way to get them back is to completely re-make the super from scratch. Ironically, I can use exactly the same fonts, and it will work if I start over from scratch.
    Beyond that, if I double-click on any rendered super, the second line will disappear from the Boris plug-in text window, and the super will go unrendered and will disappear.
    Copying and pasting a rendered super into a new location on the timeline also won't work.
    We've now had three or four feature-length documentaries over the last 18 months where EVERY super in the entire show has required retyping from scratch, at major cost and expense.
    Since the problem has occurred in several edit suites, I'm assuming this is not a problem unique to our projects.
    Anyone?

    Maybe this will help:
    There is an update available for the Boris Calligraphy package that comes bundled with FCP6/7 that addressed a bunch of font/crashing issues with Boris Title 3D.
    Info from Boris:
    !http://www.spotsbeforeyoureyes.com/Boris.jpg!
    Go to
    http://www.borisfx.com/updates/
    and down load the update for Calligraphy.

  • Just want to enable more than 2 concurrent RDP on Server 2012

    All I want to do to enable more than two concurrent RDP connections to some of my Server 2012. And that requirement is at this moment for some domain users (for 15 users out of 300 users), I don’t want to publish any remote apps or give user a web
    link to logon. I just want user to do RDP from local desktop like they are doing now.
    Honestly speaking, when I read this, it confuse me well enough as I don’t understand RDS well.
    http://technet.microsoft.com/en-us/library/dd378949(v=ws.10).aspx
    However when I see lots of TechNet forums, it just confuse me more
    Currently I have Terminal Server licencing server for 2008R2 and I understand that I can’t use this licencing server due to version incapability
    http://social.technet.microsoft.com/wiki/contents/articles/14988.rds-and-ts-cal-interoperability-matrix.aspx
    I would like to know what do from start to finish step by step
    So what I understood that I will need to
    1
    Commission a new 2012 R2 server for RDS Service deployment
    2
    Deploy RDS 2012 Services
     on the new server
    3
    Activate Licencing service on the new server
    4
    On this server, install User CALs on the licencing server and   then
    Manage RDS CAL for 15 Users by RD Licencing Manager.
    Questions
    Do I have to activate/install anything on the 2012 servers, where I want to more than two concurrent RDP connection
     2. As in my production environment I have Terminal services 2008 working, will the new version of terminal service run side by side or I will need to migrate all the older version of licences/services to the newer version?
     3. Is there any risk of creating disruption/trouble on the existing terminal services infrastructure?
    If so what are they and how to manage those?
      4. The new RDS service deployment has lots of functions, like RDCB, RDWA,RDSH and in addition RDGW, RDVH and RDLI, not sure, which I need to configure. 
    I understood that I just need to activate and configure RDLI. Did I understand correctly or I need to configure other thinks as well.

    Hi,
    Thank you for posting in Windows Server Forum.
    From your comment, it’s clear that you need more than 2 remote session in your environment and you need to install and activate the RD License server\CAL as you have listed. Now what you can do is, on server 2012 R2 you can act as RD License server and on server
    2012 you can just install RDSH role so that you can have more than 2 connection for your environment. 
    From server 2012\R2 we can manage all the server with RDCB role as middle-man and can install RDSH role on other server and point finally to RD License server so that we can get available CAL for use.
    The old environment will run side-by side but as per my suggestion I would say that you migrate all your old to new one so you can enjoy all new feature and can maintain from single point. 
    In regards to your last question, it depends on your requirement that what you want to use. You can refer following thread for information.
    How to set up an clasic TS-desktop with Windows 2012 (R2)?
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/894e3b5d-b424-4817-8185-532015817379/how-to-set-up-an-clasic-tsdesktop-with-windows-2012-r2?forum=winserverTS
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

Maybe you are looking for

  • Unable to create a formula on iPad and iPhone

    I'm able to create a formula  (like =DATEDIF) using Numbers on my MacBook, but can't get it to work using Numbers for iOS. It says in the manual (in the app) that you can just touch the formula you want to use, but that doesn't seem to work here  Whe

  • Burner stopped working all of a sudden!!!

    I tried to burn a cd today from iTunes and got this error: "itunes can't burn this cd because the burn speed is too fast for your cd burner or media." keep in mind i have not changed any settings since i last successfully burned a disk, and i have no

  • How do sync my iPad with another computer?

    How do I sync my iPad with my new computer?  I have imported all my songs, books, apps, etc. but did not do it by dragging over the old iTunes folder because the file structure is different and I did not want to mess up the new file structure with th

  • Problem adding a filter to Recordset

    Hi, I have added a record set to a page, and it works fine. Then I add a filter to the record set so I can work with the record stipulated by the URL parameter, and it stops working. Here is the code that is added without a filter: mysql_select_db($d

  • Says active online - "no service" on device??

    I would love if someone could help me with this. So I bought an iphone4 yesterday. My verizon account was "on hold" while i was out of a phone for 2 months, so I unsuspended my account, added the MEID for my new phone -- everything says it is now act