Alternative choice for ROW_NUMBER?

Hello,
I have two tables:
NAME_tab
PERSID ___ First ___ Last
1 _________ Hans ___ Schmidt
2 _________ Klaus ___ Meier
ADDRESS_tab
ADDRID _ PERSID _ Street ____ Nr.
1 _______ 2 _______ UUU _____ x ( <---------------- Klaus Meier)
2 _______ 1 _______ VVV _____ y ( <---------------- Hans Schmidt)
3 _______ 1 _______ WWW ___ z ( <---------------- Hans Schmidt)
In a report region I want to display each person with only the first person-specific adress-entry:
First _____ Last ______ Street _ Nr.
Hans ____ Schmidt ___ VVV __ y
Klaus ____ Meier _____ UUU __ x
The columns in this region are enabled to be sorted.
I tried it with ROW_NUMBER function, but this forces an ORDER BY. And I cant use an ORDER BY if I enable the sort-option for the columns.
I hope you have a good advice for me!
Best regards!
Jens

Thank you, Heinz,
but I have only one report region and if I am using min() I get only one record,i.g.:
First _____ Last ______ Street _ Nr.
Hans ____ Schmidt ___ VVV __ y
I want this result:
First _____ Last ______ Street _ Nr.
Hans ____ Schmidt ___ VVV __ y
Klaus ____ Meier _____ UUU __ x
Here is the SQL-code with ROW_NUMBER. It works so far, but I can't set columns to be sorted by the user, because of "ORDER BY" within ROW_NUMBER.
select * from (
select
p.PERS_ID, p.NAME, p.VORNAME,
a.STRASSE, a.HAUSNR, a.ADR_ID,
ROW_NUMBER() over (partition by p.PERS_ID order by a.ADR_ID) R
from PERSON p, ADRESSE a
where p.PERS_ID = a.PERS_ID (+)
where R = 1
________________________________________________________________________

Similar Messages

  • Adobe Creative Cloud and Adobe Creative Suite: New Choices for Customers

    Adobe has announced the new Cloud-based model for software distribution, along with new terms for boxed product upgrade eligibility. Beginning with the CS6 releases, when they happen, upgrade pricing on boxed products will only be availble one generation back. There is a limited window to upgrade now to the current versions at a discount.
    See http://blogs.adobe.com/conversations/2011/11/adobe-creative-cloud-and-adobe-creative-suite -new-choices-for-customers.html

    Eugene:
      Based on the current information we have (from the blog post), which may not be correct and which you should not rely upon:
    There is some confusion about the word "discount." As used in the blog post, in general there are no "discounts" for upgrades, there is the upgrade price and there is full price. But, also in the blog post, there is a special "discount upgrade" if you choose to upgrade to CS5.5 today (prior to Dec. 31, 2011), which is 20% off the regular upgrade. However, Peter used the word "discount" to distinguish between upgrade pricing and full price. It's probably a good idea to avoid using that word there because of the potential for confusion.
    I have CS5 InDesign in work. So I will be able to upgrade that to CS6 when it comes out at the discount price?
    You will be able to upgrade to CS6 at upgrade pricing. Not the 20% discount, but it is "discounted" from the full price of CS6.
    I'm still using CS2 Illustrator and Photoshop, for the little work I do in those programs, they're fine. But if I want to upgrade them to CS6 I have to pay the full amount of an upgrade, with no discount... or will I have to pay for CS6 in full for both of these programs?
    You will have to pay the full price (not the "full amount of an upgrade," whatever that means).
    If you elect to upgrade to CS5.5 prior to Dec. 31 of this year, however, then then you can pay the discounted upgrade price to upgrade to CS5.5 (well, CS5 since Photoshop CS5.5 doesn't exist), and then you can pay the CS6 upgrade price in March/April. So you can pay for no upgrades (full price) or two upgrades (one of which is 20% off).
    At the moment I can upgrade CS2, photoshop and Illustrator for €240 each, to CS5. So wouldn't I just be able to do that now and then buy the CS6 upgrade at a much later date perhaps just before CS7 comes out?
    Yes, you can do that.
    If CS6 has the tools to basically go "File>Export>Epub" and I get a fully working epub file without having to trash about in code afterwards or make complex tagging in InDesign, then I'll be buying it.
    It looks like EPUB is evolving pretty fast, so even if ID CS6 fully supports what you want out of EPUB on Day 1, I bet you'll need to be prepared to postprocess it on Day 2. Or at least long before Day 200.

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How To create a message Choice for a page?

    Hi,
    I need to create a message choice for a page and on selection of that it should navigate me to next page..like
    ex:
    If iam havng 10 locations like Delhi,Hyderabad,Chennai....
    I need to select one of them and it should be navigated to next page based on the above selection...These values are to be retrieved from database...
    Can u gimme any idea..how to proceed?

    Maybe something like this will help.
    On your <af:selectOneChoice/> component configure a valueChangeListener and set autosubmit to true.
    In your valueChangeListener change the current view like :
    public void handleValueChanged(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    if (!PhaseId.INVOKE_APPLICATION.equals(valueChangeEvent.getPhaseId())) {
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    valueChangeEvent.queue();
    } else {
    // add additiional app functionality here
    ControllerContext controllerContext = ControllerContext.getInstance();
    ViewPortContext viewPortContext = controllerContext.getCurrentViewPort();
    viewPortContext.setViewId("test");
    Regards,
    Kenneth
    The deferred execution of ValueChangeEvent is necessary as the ViewID can only be changed in INVOKE_APPLICATION phase.

  • Officejet Pro 8600 Premium e-All-in-One - N911n photo paper Not a paper choice for Tray 1

    For the HP Officejet Pro 8600 Premium e-All-in-One - N911n printer
    I am running Windows 7 64-bit
    No error Messages
    New Printer setup
    I do not see photo paper as a paper choice for in Tray 1
    This question was solved.
    View Solution.

    Hi FrancoArdito,
    Follow the steps below to print photo from Tray 1
    1. Insert the 4x6, 5x7 or 8x10 photo paper into Tray 1
    2. Open printer preferences from the printing application program
    3. Click on Paper/Quality tab
    4. Select the Paper Size, Media Type, and the the Paper source
    5. Click Ok to save the settings, and then print from the application program.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Choices for free goods determination

    Hi all,
    I want to have choices for free goods determination, like for Material A I want an option to select either of Material A or B.
    Is this possible.
    regards,
    Vandana Arora

    hello, friend.
    it is possible to do this manually, and not through the free goods determination.
    let us say you want to give 1 unit of either material A or B for every 10 units of C ordered by the customer.  what you do is create a sales order for 10 units of C as the first line item.  let us further say the first line item is item 10.
    enter either A or B as the second line item, which is item 20.  go to the column HL Itm and enter 10.  also change the item category of this line item to TANN.  just be sure to maintain this set up in item category assignment in IMG.
    there are drawbacks to this procedure, in that your choices for free goods will not be limited to material A or B.  but this could work for you.
    you may also wish to create a BOM, wherein free good A can be replaced by B.
    regards.

  • What are the 3-bit field choices for Hw_Arm_Sel in PCI-6601

    Hi,
    I am programming our own driver to operate the PCI-6601. For our application we need hardware arm option. I know it is possible to use 2 counters for that, but NI-TIO should support also hw_arm. Although it is not explained in the registry document at all, after some tedious check in the DDK examples I found that this bits are located in the Gi counting mode register. I know the position of the HW_enable as well as the position of the 3 bits for pin sellect options. What I do not know is What are the 3-bit field choices for Hw_Arm_Sel . I contacted NI support but got no support. How can NI sell boards and when a customer who is not using LAbview or Measurement Studio or DDK, but is implementing his own driver is then so arrogantly turned down from NI? Also, how can NI publish just part of the registers the board support, and when a customer contacs and asks for some registers get not at all support? I can not foretell the missing registers, and it is pretty unprofessional to document just partly the registers of 660x devices. And on request you got nothing.
    I hope someone from the community know about this Hw_Arm_Sel 3 pin options. Otherwise, there is just an option of error and trial. Or simply throw the board in the garbage.
    Dr. Kirco Arsov
    Solved!
    Go to Solution.

    Hi Kirco,
    I have some more information for you :-)
    I haven't been able to speak to the developer who is the most familiar with TIO programming since he's out of the office, but I have come across his notes from when he was writing support for the DAQmx driver.
    As I described earlier, the HW_Arm_Sel bits don't select a connector I/O pin, but an internal trigger signal. There are seven internal trigger lines, and the HW_Arm_Sel bits map directly to the internal trigger signal: 0b000 - 0b111 map to 0d0 - 0d7. In order to route an I/O pin to an internal trigger, you must also write to a few more registers.
    From what I've read, there are two more register families that need to be programmed: TG_x_LevelEdgeReg and TG_x_CombinationReg, where x is the internal trigger number. In your case, you only need one pin from the I/O connector to be your arm start trigger, so TG_0_LevelEdgeReg and TB_0_CombinationReg will suffice for your application.
    TB_0_LevelEdgeReg :: Offset 0x660
    TG_0_LevelEdgeReg is only 8 bits wide, and maps as follows:
    7..6: EdgeMode
    5..0: LESel
    LESel selects the I/O connector pin to use as the source for the internal trigger signal. 0d0 - 0d39 will select the I/O pin of the same number. NB: behavior for TG_x_LevelEdgeReg is more limited for triggers 1-7, and only a small subset of the I/O pins can be selected for those trigger signals. Trigger 0 can use any I/O pin. Setting these bits to 0d63 forces the trigger source low, and can be used as a way to 'unroute' it when you're finished with your program.
    EdgeMode determines whether the TIO will detect an edge of the incoming signal, or just pass the signal level straight through. When detecting edges, it will latch the signal and generate a single TIMEBASE3 pulse instead. 0b00 sets level mode; 0b01 sets rising edge; 0b10 sets falling edge; 0b11 sets either edge.
    TG_0_CombinationReg :: Offset 0x6A0
    TG_0_CombinationReg is 32 bits wide, and has three fields of interest:
    19..16: CombFunction
    5..4: CombTypeB
    1..0: CombTypeA
    CombTypeA controls which trigger subsystem to use as the source for the trigger signal. Since you're coming from an I/O pin and using the edge/level subsystem, you must set these bits to 0b01.
    CombTypeB is similar to CombTypeA, and although you won't be using trigger B, set it to 0b01 to be safe.
    CombFunction performs a simple logic function on A and B. Since you're only using a single I/O connector, you only need the A output, so set these bits to 0b1100.
    All of the other bits should be set to 0b0.
    Unfortunately, I'm unable to test these statements since my test machine is currently being used for another research project. Please let me know what happens if you decide to test.
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • Question - is JavaMail the choice for me? Mass email delivery.

    Hello. I'm thinking about using JavaMail API, and I would like your feedback if JavaMail is the right choice for me.
    I'm working on a J2EE app (running on Glassfish) that will send email out to multiple recipients. The critical parts are
    1) It must scale so that it can send up to 10,000 email multiple times a day.
    2) The servlet that sends out the email must have a descent performance (can't hang while sending out 10,000 email forcing the user to wait, but for the servlet to send out 10,000 emails....I expect a little delay)
    So I'm using postfix for delivery with support for 10,000 recipients. I am thinking of using JavaMail inside a servlet which retrieves the 10,000 email addresses and creates 100 separate emails with 100 email recipients under BCC for each email.
    I am sending out the email in bulks of 100 separate email each with 100 recipients under BCC to address performance.
    Does my solution sound logical? Anything else I should be aware of?

    I'm not speaking from personal experience since I haven't tried to build something
    of the scale you're talking about, but...
    I wouldn't expect the overhead of the JavaMail API to be a significant issue here.
    Of course, you have to use the JavaMail API in a reasonable manner to get good
    performance and scalability.
    A lot depends on the performance of your server as well.
    I would expect the most difficult part to be handling the inevitable failures (network, server, etc.)
    that will occur when working at this scale.
    100 connections to your mail server several times a day shouldn't be an issue, but your
    mail server will be busy sending out all those messages.

  • What is the best Mac choice for creating pro-level art/graphics/animation?

    I'm an artist who does a lot of work with Adobe Creative Suite CS5, as well as some video editing and lots of animation. I've been using a 2007 model 15-inch Macbook Pro for the last 4 years, and it seems like it's time to upgrade...it runs burning hot all the time, and the battery dies pretty quick when the cord falls out. It seems like the whole thing is running a little slow, which is probably because I have a TON of graphics/animation/video software on there, but I need each and every program.
    My question is, what is the best new Mac to purchase to replace this one? I want to make sure it lasts as long as possible, and will be able to handle the programs I use now. My first thought is to get another Macbook Pro, because of the portability, and just add on all the higher RAM, etc to customize it. But my husband suggested looking into the Mac Mini, because it's a lot cheaper, and we're a little strapped for cash at the moment. Would that serve the purpose? Or is a Macbook Pro really the best choice for what I need it to do?
    I'd love to hear suggestions from other artists or graphics people. What do you recommend?

    For a "cash strapped" person, unless you already
    have a monitor, one of the new iMacs may be
    a better choice.  If you do have a monitor, I would
    suggest the dual core i7 equipt MacMini.  Since you state
    you are using CS5 stuff, most Adobe apps,
    Photoshop for example, do not make effective
    use of multiple cores.  Also, using any of the
    Adobe products, regardless of which computer
    you decide on, get as much RAM as you can afford.

  • Wrong choice for a monitor?

    Hi... just bought a samsung lcd tv monitor to hook up to my macbook pro, but I can't get good resolution for graphic design. selected highest res possible in s system preferences, but still sucky. Is it not a good choice for a  graphics monitor?

    TV monitors are usually never good for graphic design because they are designed to be viewed from across the room where the pixels merge when being viewed for a distance. So they tend to have bigger pixels and spaced more apart than computer monitors.
    Up close requires a higher pixel count per sq inch. So a 17" MacBook Pro has a like 1080i screen up close within a couple of feet as a 50" HD TV has the same at 20 feet.
    Since TV content is max at 1080i for 1980 x 1000 pixel count,  there is no need to make it bigger for up close and computer use.
    Graphic monitors of that larger caliper have something like 3000 x 2000 pixel resolution at 30 and 40" sizes to get the fine detail and less blurry type and images.
    If your looking for a larger screen for graphic design, I don't recommend Apple's glossy screens at all, look for a professional anti-glare high res models online.
    Apple has been slowly exiting certain markets that depended upon it's hardware in favor of serving only the consumer markets for gizmos.
    I fully expect the MacPro to go the way of the XServer in the coming years as demand slacks off for their "Pro" products.
    Apple is already introducing only integrated graphics in their "Pro" line of laptops and ineffective for serious professional use glossy displays.

  • Alternative formula for condition base value in cross-application

    Hi,
    I need inputs regarding an issue as:-
    In "TAXINJ" Tax pricing procedure, for a ZXXX  excise related condition type the alternate condition base value (Alternative formula for condition base value) must be of  YXXX condition type of MM Purchase pricing Procedure.
    How to acheive Alternative formula for condition base value in cross-application area as both condition type belongs to different Application area i.e.  ZXXX belongs to TX and YXXX belongs to M.
    One way or only way is thro' routine but I do not know How it works? 
    Thanking you.
    Prashant

    routine is only the best way for u in this case
    u will have to use subtot may be 6 or 4 in MM pricing procedure
    and write a routien in Tax procedure, i n that u will have to write a code where in ur sustem will featch this value in sub total and act a a base for ur cond type in Tax proc for ue condition type.
    what is your excat requirement
    there might be other work around that can help u around
    hope this works
    or write t routines one in MM and Other in Tax proc for ur issues

  • Used of 362 & 363 Alternative formula for condition base value in Define Procedures (Tcode obyz)

    Dear
             what is the  used of 362 & 363 Alternative formula for condition base value in Define Procedures (Tcode obyz)

    362 is used for to pick base value to BASB condition type from MM pricing procedure
    363 is used for all sales tax {VAT (Inventory or set -off) & CST}.
    Tax Calculation on Freight - Different Scenarios
    Please  go through this  link  and  you will know  very well a bout  362 and  363  usage

  • Is unlocked iphone 3gs a good choice for use in the UK with PAYG?

    I've never had a smartphone. I'm thinking of buying the unlocked iphone 3gs to use when I'm in the UK 2-3 (months a year). I would be using a pay as you go sim with a little data use included. All I need is the ability to call, text, email, blog, and check facebook. Would this phone be a good choice for me. I'm hearing that there are some problems with battery life on the iphone 4. Does the 3gs have those issues? Also what does the 's' stand for?
    Any helpful info apppreciated.
    Robertson

    This is the deal I'm looking at. As you can see it comes with the upated OS. $375. Is already a bit more than I would normally spend on a phone.
    iPhone 3GS 8GB Black — Unlocked
    Get all the features of iPhone 3GS (8GB1) in a phone that you can activate and use on the supported GSM wireless carrier of your choice.2
    If you don’t want a multiyear service contract or if you prefer to use a local carrier when traveling abroad, the unlocked iPhone 3GS is a great choice. It arrives without a SIM card, so you’ll need an active SIM card from any supported GSM carrier worldwide.
    Get iPhone 3GS for AT&T.
    iPhone 3GS starts at $0 when you sign up for a new two-year plan with AT&T.
    Learn more
    Learn more
    Enlarge images
    $375.00
    In Stock
    Free Shipping
    Add to Cart
    Gift package

  • How can I get dock connector to turn off on air play. There is no longer a choice for sound to be displayed on iPad. I do not own outside speakers. Have already reset. Thanks

    How can I get dock connector to turn off on air play. There is no longer a choice for sound to be displayed on iPad. I do not own outside speakers. Have already reset. Thanks

    Slow, intermittent.  Sometimes bootable sometime not. Odd behavior.
    Sounds to me like a classic case of your HD failing.
    Your SMART status may still show verified, with no errors on the Apple Hardware Test, Disk Utility shows no problems on Disk Repair-  this is of no help.
    I trust you have a good back-up and a bootable clone.
    http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/

  • Best choice for a date column in forms

    Hello,
    I want to know what is the best choice for a date field that the user have to enter manually. I read on a other post that a calender control is not directly implemented in forms 9i. So what is the best choice to be "user friendly" with a date field in a form?
    thanks in advance.

    Hi
    Don't know if this would be much use to you, but I wrote this function 'Check_Date' a while back to check whether the user had typed something which could be interpreted as a date. You'd make your date field into a Text Item, and include a call to this function (which could be in your form, or in a library) in the WHEN-VALIDATE-ITEM trigger on the item, ie:
    IF NOT check_date(:ITEMS.date_item1, NULL, NULL) THEN
        RAISE FORM_TRIGGER_FAILURE;
    END IF;This would mean that the user could type 'T' or '*' for today, '+1' for tomorrow, '-7' for one week ago, or the date in a variety of formats. When they leave the field, the function tries to resolve what they've typed into a date, and sets the field to a date in the correct format.
    ('Display_Alert' is just a function to display a named alert with a message.) It can also be used to check that the date entered doesn't fall outside upper and lower bounds. Code follows:
    FUNCTION Check_Date (text_in        IN OUT VARCHAR2,
                         lower_bound_in IN DATE,
                         upper_bound_in IN DATE)
    RETURN BOOLEAN IS
    first_letter      VARCHAR2(1)  := SUBSTR(text_in, 1, 1);
    date_ok           BOOLEAN;
    this_date         DATE;
    date_diff         NUMBER(8);
    output_format     VARCHAR2(12) := Get_Application_Property(BUILTIN_DATE_FORMAT);
    TYPE date_format_table_type IS TABLE OF VARCHAR2(12)
    INDEX BY BINARY_INTEGER;
    date_format_table    date_format_table_type;
    BEGIN
        --Set up table of date formats in order they'll be tested for
        date_format_table(1)  := 'DD-MON-RRRR';
        date_format_table(2)  := 'DD-MM-RRRR';
        date_format_table(3)  := 'DD-MM';
        date_format_table(4)  := 'DD-MON';
        date_format_table(5)  := 'YYYY-MM-DD';
        date_format_table(6)  := 'YYYY-MON-DD';
        --Use of T, or * for today's date...
        IF UPPER(text_in) IN ('T', '*') THEN
               this_date := SYSDATE;
               date_ok := TRUE;
        --Look for use of +x/-x for number of days different from today
        ELSIF first_letter IN ('+', '-') THEN
               BEGIN
                   date_diff := TO_NUMBER(SUBSTR(text_in, 2));
                   IF first_letter = '+' THEN
                       this_date := SYSDATE + date_diff;
                   ELSE
                          this_date := SYSDATE - date_diff;
                   END IF;
                   date_ok := TRUE;              
               EXCEPTION
                      WHEN VALUE_ERROR THEN
                          --User has entered something like '+X', so not valid
                          date_ok := FALSE;
               END;
        ELSE
            --Go through all the possible formats for date entry,
            --if any give a valid date, then return that.
            FOR ix IN date_format_table.FIRST..date_format_table.LAST LOOP
                   EXIT WHEN date_ok;
                BEGIN
                       --Try creating a date using the format masks in the local
                       --table.  If no good, this will throw an INVALID_DATE exception
                       this_date := TO_DATE(text_in, date_format_table(ix));
                       date_ok := TRUE;
                   EXCEPTION
                       WHEN OTHERS THEN
                           date_ok := FALSE;
                   END;
            END LOOP;
        END IF;
        IF date_ok THEN         
               --Check for violation of lower/upper bounds on date
               IF (lower_bound_in IS NOT NULL AND this_date < lower_bound_in) THEN
                   Display_Alert('info_alert', 'Date cannot be before '||TO_CHAR(lower_bound_in, output_format));
                   date_ok := FALSE;
               ELSIF (upper_bound_in IS NOT NULL AND this_date > upper_bound_in) THEN
                   Display_Alert('info_alert', 'Date cannot be after '||TO_CHAR(upper_bound_in, output_format));
                   date_ok := FALSE;
               ELSE
                      text_in := TO_CHAR(this_date, output_format);
               END IF;
        ELSE
            Display_Alert('INFO_ALERT', text_in||' is not a valid date !!');
        END IF;
        RETURN date_ok;
    END;Hope this is useful.
    regards
    Andrew
    UK

Maybe you are looking for